Skip to content
Snippets Groups Projects

O4a online dtdphi plotter

Merged Leo Tsukada requested to merge o4a-online-dtdphi-plotter into o4a-online
1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
@@ -517,6 +517,9 @@ class EventPlotter(events.EventProcessor):
ifos = sorted(event_kwargs["snrs"].keys())
ifo1 = ifos.pop(0)
snrs = event_kwargs["snrs"]
# remove segments for ifos not having horizon distance after
# compression, which would cause an error inside
# local_mean_horizon_distance()
segs_nonzero = {ifo:seg for ifo, seg in event_kwargs["segments"].items() if len(rankingstat.numerator.horizon_history[ifo]) > 0}
horizons = rankingstat.numerator.local_mean_horizon_distance(segs_nonzero, template_id = event_kwargs["template_id"])
figs = {}
Loading