Skip to content

Commit

Permalink
Variable for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
pannarale committed Dec 8, 2024
1 parent 15e4cc5 commit 531d428
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/pygrb/pycbc_pygrb_plot_injs_results
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,10 @@ trig_data = ppu.extract_trig_properties(
# by slide_id, as arrays indexed by trial number
background = {k: np.zeros(len(v)) for k,v in trial_dict.items()}
for slide_id in slide_dict:
trig_times = trig_data[keys[0]][slide_id][:]
for j, trial in enumerate(trial_dict[slide_id]):
# True whenever the trigger is in the trial
trial_cut = (trial[0] <= trig_data[keys[0]][slide_id][:])\
& (trig_data[keys[0]][slide_id][:] < trial[1])
trial_cut = (trial[0] <= trig_times) & (trig_times < trial[1])
# Move on if nothing was in the trial
if not trial_cut.any():
continue
Expand Down

0 comments on commit 531d428

Please sign in to comment.