Commit e064217a authored by Médéric Boquien's avatar Médéric Boquien Committed by Yannick Roehlly
Browse files

Only copy the SFH if it exists. For instance when only modelling the dust we...

Only copy the SFH if it exists. For instance when only modelling the dust we do not have any stellar population.
parent e3a55ce1
......@@ -333,7 +333,8 @@ class SED(object):
def copy(self):
sed = SED()
sed._sfh = (self._sfh[0], self._sfh[1])
if self.sfh is not None:
sed._sfh = (self._sfh[0], self._sfh[1])
sed.modules = self.modules[:]
if self.wavelength_grid is not None:
sed.wavelength_grid = self.wavelength_grid.copy()
......
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