Skip to content

Commit

Permalink
Fix for astropy.units in notebook histogram
Browse files Browse the repository at this point in the history
  • Loading branch information
epassaro committed Apr 24, 2022
1 parent 9e33821 commit 918545b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/physics/spectrum/basic.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@
"source": [
"emitted_luminosity_hist = u.Quantity(np.histogram(emitted_nus,\n",
" weights=emitted_luminosities,\n",
" bins=spectrum_frequency.value,\n",
" bins=spectrum_frequency,\n",
" )[0], \"erg / s\",)\n",
"emitted_luminosity_hist"
]
Expand Down

0 comments on commit 918545b

Please sign in to comment.