Commit 3fb4497a authored by Médéric Boquien's avatar Médéric Boquien

As we modify the sed object, make a deep copy so we do not accidentally alter...

As we modify the sed object, make a deep copy so we do not accidentally alter the very in the cache. These should probably be made read-only, if it is not too costly in terms of performance.
parent 51008fe7
......@@ -246,6 +246,7 @@ def bestfit(oidx, obs):
corr_scaling = 1.
sed = gbl_warehouse.get_sed(gbl_params.modules, params)
sed = deepcopy(sed)
# Handle the case where the distance does not correspond to the redshift.
if obs.redshift >= 0.:
......
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