Skip to content

Commit

Permalink
initialise a transparent mask if it is not given
Browse files Browse the repository at this point in the history
  • Loading branch information
GarethCabournDavies committed Oct 31, 2023
1 parent 299a6b5 commit 86dac21
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pycbc/io/hdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,10 @@ def __init__(self, trig_file, detector, bank_file=None, veto_file=None,
# empty dict in place of non-existent hdf file
self.bank = {}

self.mask = premask
if premask is not None:
self.mask = premask
else:
self.mask = np.ones(self.ntriggers, dtype=bool)

if filter_rank:
assert filter_threshold is not None
Expand Down

0 comments on commit 86dac21

Please sign in to comment.