Commit 899be64f authored by Médéric Boquien's avatar Médéric Boquien

Update the analysis modules workers to use the prefixed sfh.age.

parent f9b839dd
......@@ -169,7 +169,7 @@ def sed(idx):
sed = gbl_warehouse.get_sed(gbl_params.modules,
gbl_params.from_index(idx))
if 'age' in sed.info and sed.info['age'] > sed.info['universe.age']:
if 'sfh.age' in sed.info and sed.info['sfh.age'] > sed.info['universe.age']:
model_fluxes = -99. * np.ones(len(gbl_filters))
model_variables = -99. * np.ones(len(gbl_analysed_variables))
else:
......
......@@ -81,7 +81,7 @@ def fluxes(idx):
if gbl_save_sed == True:
sed.to_votable(OUT_DIR + "{}_best_model.xml".format(idx))
if 'age' in sed.info and sed.info['age'] > sed.info['universe.age']:
if 'sfh.age' in sed.info and sed.info['sfh.age'] > sed.info['universe.age']:
model_fluxes = -99. * np.ones(len(gbl_filters))
else:
model_fluxes = np.array([sed.compute_fnu(filter_.trans_table,
......
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