From 5cf0e61296823090b268b2715958e931e5165b16 Mon Sep 17 00:00:00 2001 From: GarethCabournDavies Date: Mon, 29 Jul 2024 01:57:35 -0700 Subject: [PATCH] Still create stat class variable even when there are no triggers --- pycbc/io/hdf.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pycbc/io/hdf.py b/pycbc/io/hdf.py index ecd27ffc98a..13230670b9d 100644 --- a/pycbc/io/hdf.py +++ b/pycbc/io/hdf.py @@ -711,6 +711,7 @@ def mask_to_n_loudest_clustered_events(self, rank_method, if len(stat) == 0: # No triggers at all, so just return here self.apply_mask(np.array([], dtype=np.uint64)) + self.stat = np.array([], dtype=np.uint64) return times = self.end_time