Commit 29907e7b authored by Médéric Boquien's avatar Médéric Boquien

Make sure all the variables are saved in the FITS and not just the ones with...

Make sure all the variables are saved in the FITS and not just the ones with are in mass_proportional_info. Bug seen by Yannick 2Eagle Eye' Roehlly.
parent bb2fd787
......@@ -22,10 +22,11 @@ def save_sed_to_fits(sed, prefix, norm=1.):
"""
info = OrderedDict()
for name in sed.mass_proportional_info:
info[name] = str(norm * sed.info[name])
else:
info[name] = str(sed.info[name])
for name in sed.info:
if name in sed.mass_proportional_info:
info[name] = str(norm * sed.info[name])
else:
info[name] = str(sed.info[name])
table = Table(meta=info)
table['wavelength'] = Column(sed.wavelength_grid, unit="nm")
......
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