Skip to content

Commit

Permalink
Standardize lightcurve file, plot naming.
Browse files Browse the repository at this point in the history
  • Loading branch information
wmwv committed Jun 21, 2024
1 parent 299047f commit b05210f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/RomanDESCForwardModelLightcurves.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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,
Expand Down

0 comments on commit b05210f

Please sign in to comment.