Skip to content
Snippets Groups Projects
Commit 3b30c7e2 authored by Branson Craig Stephens's avatar Branson Craig Stephens
Browse files

Added FAR to email alert.

parent 289f1e19
No related branches found
No related tags found
No related merge requests found
......@@ -31,11 +31,13 @@ def prepareSummary(event):
gpstime = event.gpstime
utctime = gpsToUtc(gpstime).strftime("%Y-%m-%d %H:%M:%S")
instruments = getattr(event, 'instruments', "")
far = getattr(event, 'far', 1.0)
summary_template = """
Event Time (GPS): %s
Event Time (UTC): %s
Instruments: %s """
summary = summary_template % (gpstime, utctime, instruments)
Instruments: %s
FAR: %.3E """
summary = summary_template % (gpstime, utctime, instruments, far)
si_set = event.singleinspiral_set.all()
if si_set.count():
si = si_set[0]
......
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