Skip to content

Commit

Permalink
Trig_dict must have an IFO
Browse files Browse the repository at this point in the history
  • Loading branch information
GarethCabournDavies committed Jul 29, 2024
1 parent c5675e8 commit dcc933d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pycbc/io/hdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,14 +483,15 @@ def checkbank(self, param):
% param)

def trig_dict(self):
"""Returns dict of the masked trigger valuse """
"""Returns dict of the masked trigger values """
mtrigs = {}
for k in self.trigs:
if len(self.trigs[k]) == len(self.trigs['end_time']):
if self.mask is not None:
mtrigs[k] = self.trigs[k][self.mask]
else:
mtrigs[k] = self.trigs[k][:]
mtrigs['ifo'] = self.ifo
return mtrigs

@classmethod
Expand Down

0 comments on commit dcc933d

Please sign in to comment.