From 7a215a217a7c2ea79e879d21f9d0f36202ec2afc Mon Sep 17 00:00:00 2001 From: "chad.hanna" <crh184@psu.edu> Date: Fri, 4 Jan 2019 08:54:39 -0800 Subject: [PATCH] lv alert programs: update to new API --- gstlal-inspiral/bin/gstlal_inspiral_lvalert_background_plotter | 2 +- gstlal-inspiral/bin/gstlal_inspiral_lvalert_psd_plotter | 2 +- .../bin/gstlal_inspiral_lvalert_snrtimeseries_plotter | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gstlal-inspiral/bin/gstlal_inspiral_lvalert_background_plotter b/gstlal-inspiral/bin/gstlal_inspiral_lvalert_background_plotter index b502c75ce8..c419b0442b 100755 --- a/gstlal-inspiral/bin/gstlal_inspiral_lvalert_background_plotter +++ b/gstlal-inspiral/bin/gstlal_inspiral_lvalert_background_plotter @@ -142,7 +142,7 @@ if not gid_list: lvalert_data = json.loads(sys.stdin.read()) logging.info("%(alert_type)s-type alert for event %(uid)s" % lvalert_data) logging.info("lvalert data: %s" % repr(lvalert_data)) - filename = os.path.split(urlparse.urlparse(lvalert_data["file"]).path)[-1] + filename = os.path.split(urlparse.urlparse(lvalert_data["data"]["filename"]).path)[-1] if filename not in (u"ranking_data.xml.gz",): logging.info("filename is not 'ranking_data.xml.gz'. skipping") sys.exit() diff --git a/gstlal-inspiral/bin/gstlal_inspiral_lvalert_psd_plotter b/gstlal-inspiral/bin/gstlal_inspiral_lvalert_psd_plotter index 0f28fc01b8..e125b548c3 100755 --- a/gstlal-inspiral/bin/gstlal_inspiral_lvalert_psd_plotter +++ b/gstlal-inspiral/bin/gstlal_inspiral_lvalert_psd_plotter @@ -126,7 +126,7 @@ if not graceids: lvalert_data = json.loads(sys.stdin.read()) logging.info("%(alert_type)s-type alert for event %(uid)s" % lvalert_data) logging.info("lvalert data: %s" % repr(lvalert_data)) - filename = os.path.split(urlparse.urlparse(lvalert_data["file"]).path)[-1] + filename = os.path.split(urlparse.urlparse(lvalert_data["data"]["filename"]).path)[-1] if filename not in (u"psd.xml.gz",): logging.info("filename is not 'psd.xml.gz'. skipping") sys.exit() diff --git a/gstlal-inspiral/bin/gstlal_inspiral_lvalert_snrtimeseries_plotter b/gstlal-inspiral/bin/gstlal_inspiral_lvalert_snrtimeseries_plotter index 84a5c17c24..0d8ef4efe0 100755 --- a/gstlal-inspiral/bin/gstlal_inspiral_lvalert_snrtimeseries_plotter +++ b/gstlal-inspiral/bin/gstlal_inspiral_lvalert_snrtimeseries_plotter @@ -82,7 +82,7 @@ def parse_command_line(): lvalert_data = json.loads(sys.stdin.read()) logging.info("%(alert_type)s-type alert for event %(uid)s" % lvalert_data) logging.info("lvalert data: %s" % repr(lvalert_data)) - filename = path.split(urlparse.urlparse(lvalert_data["file"]).path)[-1] + filename = path.split(urlparse.urlparse(lvalert_data["data"]["filename"]).path)[-1] if filename not in (u"psd.xml.gz",): logging.info("filename is not 'psd.xml.gz'. skipping") sys.exit() -- GitLab