diff --git a/pycbc/events/stat.py b/pycbc/events/stat.py index c1cd9912c7b..786ac60a7e6 100644 --- a/pycbc/events/stat.py +++ b/pycbc/events/stat.py @@ -2303,10 +2303,12 @@ def check_low_latency(self, key): if 'dq_segments' not in ifo_grp.keys(): # if segs are not in file, we must be in LL if self.dq_state_segments is not None: - raise ValueError('Either all dq stat files must have segments or none') + raise ValueError( + 'Either all dq stat files must have segments or none') self.low_latency = True elif self.low_latency: - raise ValueError('Either all dq stat files must have segments or none') + raise ValueError( + 'Either all dq stat files must have segments or none') def assign_template_bins(self, key): """ diff --git a/pycbc/frame/frame.py b/pycbc/frame/frame.py index e7f2d0296ec..bea7386418a 100644 --- a/pycbc/frame/frame.py +++ b/pycbc/frame/frame.py @@ -924,7 +924,7 @@ def flag_at_times(self, start_time, duration, times, padding=0): e = s + int((duration + padding) * sr) + 1 # find samples when iDQ FAP is below threshold and state is valid - idq_fap = self.idq.raw_buffer[s:e] + idq_fap = self.idq.raw_buffer[s:e] low_fap = idq_fap.numpy() <= self.threshold idq_valid = self.idq_state.raw_buffer[s:e] idq_valid = idq_valid.numpy().astype(bool)