Skip to content
Snippets Groups Projects
Commit f83e23ae authored by Chad Hanna's avatar Chad Hanna
Browse files

streamthinca.py: remove time slide id from trials table

parent 079e1f0f
No related branches found
No related tags found
No related merge requests found
......@@ -294,13 +294,13 @@ class StreamThinca(object):
# increment the trials table
ifo_set = frozenset(coinc_inspiral_row.get_ifos())
try:
self.trials_table[(ifo_set, coinc_event_row.time_slide_id)] += 1
self.trials_table[ifo_set] += 1
except KeyError:
self.trials_table[(ifo_set, coinc_event_row.time_slide_id)] = 1
self.trials_table[ifo_set] = 1
# Assign the FAP if requested
if FAP is not None:
# note FAP should have a reference to the same trials table as this object does. This is handled in the Data class in inspiral.py
coinc_inspiral_row.false_alarm_rate = FAP.fap_from_rank(coinc_event_row.likelihood, ifo_set, coinc_event_row.time_slide_id)
coinc_inspiral_row.false_alarm_rate = FAP.fap_from_rank(coinc_event_row.likelihood, ifo_set)
# assume each event is "loudest" so n = 1 by default, not the same as required for an IFAR plot
coinc_inspiral_row.combined_far = FAP.compute_far(coinc_inspiral_row.false_alarm_rate)
# populate a column with latency
......
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