Skip to content
Snippets Groups Projects
Commit ff09ad8e authored by Kipp Cannon's avatar Kipp Cannon
Browse files

gstlal_inspiral_lvalert_psd_plotter: fix filename issues

- change format to patch lvalert_backgroundplotter
- add missing argumen to upload_fig() call
parent 1f85982e
No related branches found
No related tags found
No related merge requests found
......@@ -160,10 +160,10 @@ for graceid in graceids:
except AttributeError:
# not available on old matplotlibs
pass
filename = "%s_psd.png" % graceid
if options.no_upload:
filename = "psd_%s.png" % graceid
logging.info("writing %s ..." % filename)
fig.savefig(filename)
else:
lvalert_helper.upload_fig(fig, gracedb_client, graceid, log_message = "strain spectral density plot")
lvalert_helper.upload_fig(fig, gracedb_client, graceid, filename = filename, log_message = "strain spectral density plot")
logging.info("finished processing %s" % graceid)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment