Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check that psd is not None before using ifo for followup #4989

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading