Skip to content

Commit

Permalink
Check that psd is not None before using ifo for followup
Browse files Browse the repository at this point in the history
  • Loading branch information
maxtrevor committed Dec 13, 2024
1 parent 3f53cfa commit 2ea26d6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pycbc/filter/matchedfilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1925,9 +1925,11 @@ def followup_event_significance(ifo, data_reader, bank,
- data_reader.reduced_pad * data_reader.strain.delta_t
- buffer_duration
)
if not data_reader.state.is_extent_valid(
data_usable = data_reader.state.is_extent_valid(
state_start_time, buffer_duration
):
)
data_usable &= data_reader.psd is not None
if not data_usable:
logging.info(
'%s strain buffer contains invalid data during lookback, '
'will not use for followup',
Expand Down

0 comments on commit 2ea26d6

Please sign in to comment.