Skip to content

Commit

Permalink
update np.NaN to np.nan
Browse files Browse the repository at this point in the history
  • Loading branch information
yoachim committed Aug 21, 2024
1 parent 71f3610 commit f99938d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rubin_sim/phot_utils/sed.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def cache_lsst_seds(wavelen_min=None, wavelen_max=None, cache_dir=None):
class Sed:
""" "Hold and use spectral energy distributions (SEDs)"""

def __init__(self, wavelen=None, flambda=None, fnu=None, badval=numpy.NaN, name=None):
def __init__(self, wavelen=None, flambda=None, fnu=None, badval=numpy.nan, name=None):
"""
Initialize sed object by giving filename or lambda/flambda array.
Expand Down Expand Up @@ -798,7 +798,7 @@ def resample_sed(
# Do the interpolation of wavelen/flux onto grid.
# (type/len failures will die here).
if wavelen[0] > wavelen_grid[0] or wavelen[-1] < wavelen_grid[-1]:
f = interpolate.interp1d(wavelen, flux, bounds_error=False, fill_value=numpy.NaN)
f = interpolate.interp1d(wavelen, flux, bounds_error=False, fill_value=numpy.nan)
flux_grid = f(wavelen_grid)
else:
flux_grid = numpy.interp(wavelen_grid, wavelen, flux)
Expand Down

0 comments on commit f99938d

Please sign in to comment.