Skip to content

Commit

Permalink
Improve GraceDB annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
titodalcanton committed Feb 15, 2024
1 parent 41d4c8d commit ebab250
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions bin/pycbc_live
Original file line number Diff line number Diff line change
Expand Up @@ -544,18 +544,16 @@ class LiveEventManager(object):

# Verbally explain some details not obvious from the other info
comment = (
'Trigger produced as a {} coincidence. '
'FAR is based on {}.<br />'
'Trigger produced as a {} coincidence.<br />'
'Two-detector ranking statistic: {}<br />'
'Followup detectors: {}<br />'
'Localization-only detectors: {}'
'Detectors used for FAR calculation: {}.<br />'
'Detectors used for localization: {}.'
)
comment = comment.format(
ppdets(coinc_ifos),
set(ifos) - self.skymap_only_ifos,
args.ranking_statistic,
ppdets(followup_ifos),
ppdets(self.skymap_only_ifos)
set(ifos) - self.skymap_only_ifos,
ppdets(followup_ifos)
)

ifar = coinc_results['foreground/ifar']
Expand Down Expand Up @@ -649,9 +647,11 @@ class LiveEventManager(object):
logging.info('Single-detector candidate! Saving as %s', fname)

# Verbally explain some details not obvious from the other info
comment = ('Trigger produced as a {0} single. '
'FAR is based on {0} only.<br />'
'Followup detectors: {1}')
comment = (
'Trigger produced as a {0} single.<br />'
'Detectors used for FAR calculation: {0}.<br />'
'Detectors used for localization: {2}.'
)
comment = comment.format(ifo, ppdets(followup_ifos))

# Has a coinc event at this time been uploaded recently?
Expand Down

0 comments on commit ebab250

Please sign in to comment.