Commit f384e58d authored by Médéric Boquien's avatar Médéric Boquien
Browse files

Minor optimisation. Avoid accessing the object member by using the already present local variable.

parent 389fc091
......@@ -324,8 +324,8 @@ class SED(object):
l_lambda = self.luminosity
# Test if the spectrum cover all the filter extend
if ((np.min(self.wavelength_grid) > lambda_min) or
(np.max(self.wavelength_grid) < lambda_max)):
if ((np.min(wavelength) > lambda_min) or
(np.max(wavelength) < lambda_max)):
f_nu = -99.
else:
......
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