Skip to content

Commit

Permalink
Still create stat class variable even when there are no triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
GarethCabournDavies committed Jul 29, 2024
1 parent cac1fb5 commit 5cf0e61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pycbc/io/hdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5cf0e61

Please sign in to comment.