From b05210f38b343953eb44cc3a4f780b5987776bfc Mon Sep 17 00:00:00 2001 From: Michael Wood-Vasey Date: Fri, 21 Jun 2024 13:00:13 -0700 Subject: [PATCH] Standardize lightcurve file, plot naming. --- python/RomanDESCForwardModelLightcurves.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/RomanDESCForwardModelLightcurves.py b/python/RomanDESCForwardModelLightcurves.py index e3dd505..2c11b49 100644 --- a/python/RomanDESCForwardModelLightcurves.py +++ b/python/RomanDESCForwardModelLightcurves.py @@ -838,8 +838,9 @@ def calc_center(params): model_filename = f"Transient_{transient_id}_AstroPhot_model.yaml" result.model.save(model_filename) + lightcurve_basename = f"lightcurve_{dataset}_{transient_id}" lightcurve_obs = make_lightcurve_from_fit(model_host_sn) - lightcurve_obs_filename = f"lightcurve_{transient_id}.csv" + lightcurve_obs_filename = lightcurve_basename + ".csv" if lightcurve_obs_filename is not None: lightcurve_obs.write(lightcurve_obs_filename, overwrite=overwrite) @@ -848,7 +849,7 @@ def calc_center(params): if verbose: print(lightcurve) - plot_filename = f"lightcurve_{dataset}_{transient_id}.png" + plot_filename = lightcurve_basename + ".png" plot_lightcurve( lightcurve, lightcurve_obs,