Skip to content

Commit

Permalink
Blending _load_triggers into load_data
Browse files Browse the repository at this point in the history
  • Loading branch information
pannarale committed Nov 14, 2024
1 parent 1358cd5 commit 1316d65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycbc/results/pygrb_postprocessing_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def load_data(input_file, ifos, rw_snr_threshold=None, data_tag=None,
logging information about the number of triggers/injections found, so the
user should not set it to 'trigs'/'injs' when processing the onsource."""

if input_file is None:
if not input_file:
return None

trigs = HFile(input_file, 'r')
Expand Down

0 comments on commit 1316d65

Please sign in to comment.