Skip to content

Commit

Permalink
Ensure that radiance from planck() isn't masked
Browse files Browse the repository at this point in the history
This will fix saving of the LUT for Py2.7
  • Loading branch information
pnuu committed Nov 30, 2018
1 parent 781e477 commit 86086df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyspectral/blackbody.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ def planck(wave, temp, wavelength=True):

denom = np.exp(exp_arg) - 1
rad = nom / denom
rad = np.where(rad.mask, np.nan, rad.data)
radshape = rad.shape
if wln.shape[0] == 1:
if temperature.shape[0] == 1:
Expand Down

0 comments on commit 86086df

Please sign in to comment.