Commit 389fc091 authored by Médéric Boquien's avatar Médéric Boquien

Small optimisation in the interpolation. There is no need to sort the arrays...

Small optimisation in the interpolation. There is no need to sort the arrays because they are already sorted.
parent e75f46b7
......@@ -238,6 +238,7 @@ class SED(object):
new_luminosities = interp1d(self.wavelength_grid,
self.luminosities,
bounds_error=False,
assume_sorted=True,
fill_value=0.)(new_wavelength_grid)
# Interpolate the added luminosity array to the new wavelength
......@@ -245,6 +246,7 @@ class SED(object):
interp_lumin = interp1d(results_wavelengths,
results_lumin,
bounds_error=False,
assume_sorted=True,
fill_value=0)(new_wavelength_grid)
self.wavelength_grid = new_wavelength_grid
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment