Skip to content

Commit

Permalink
Fix bug where single detector event fit_threshold was being read from…
Browse files Browse the repository at this point in the history
… wrong location
  • Loading branch information
maxtrevor committed Dec 4, 2024
1 parent c06f60a commit fb6e90b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycbc/events/single.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def calculate_ifar(self, sngl_ranking, duration):
with HFile(self.fit_file, 'r') as fit_file:
bin_edges = fit_file['bins_edges'][:]
live_time = fit_file[self.ifo].attrs['live_time']
thresh = fit_file.attrs['fit_threshold']
thresh = fit_file[self.ifo].attrs['fit_threshold']
dist_grp = fit_file[self.ifo][self.sngl_ifar_est_dist]
rates = dist_grp['counts'][:] / live_time
coeffs = dist_grp['fit_coeff'][:]
Expand Down

0 comments on commit fb6e90b

Please sign in to comment.