From fb6e90bc92b5b8db558609f30f1b13d11294ec1a Mon Sep 17 00:00:00 2001 From: maxtrevor Date: Wed, 4 Dec 2024 10:53:21 -0800 Subject: [PATCH] Fix bug where single detector event fit_threshold was being read from wrong location --- pycbc/events/single.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pycbc/events/single.py b/pycbc/events/single.py index 527dc7f78d2..bde38325273 100644 --- a/pycbc/events/single.py +++ b/pycbc/events/single.py @@ -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'][:]