Commit 2f066dd7 authored by Yannick Roehlly's avatar Yannick Roehlly
Browse files

Remove TODO from previous commit

Better think twice before pushing...

In fact, it would be better not to compare the wavelength grid sizes if
most modules change the grid *and* have a new grid of the same size
(that's not the case).
parent bb4f7927
......@@ -234,8 +234,6 @@ class SED(object):
# If the added luminosity contribution changes the SED wavelength
# grid, we interpolate everything on a common wavelength grid.
# TODO: If most modules change the grid, maybe it's better not to
# test the grid size first.
if (results_wavelengths.size != self.wavelength_grid.size or
not np.all(results_wavelengths == self.wavelength_grid)):
# Compute the new wavelength grid for the spectrum.
Supports Markdown
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