From 531d4286c6da9fff666cf32a950e296cc5e7e8b5 Mon Sep 17 00:00:00 2001 From: Francesco Pannarale Date: Sun, 8 Dec 2024 10:48:27 -0800 Subject: [PATCH] Variable for readability --- bin/pygrb/pycbc_pygrb_plot_injs_results | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/pygrb/pycbc_pygrb_plot_injs_results b/bin/pygrb/pycbc_pygrb_plot_injs_results index 5995e441cf3..e44c56acecd 100644 --- a/bin/pygrb/pycbc_pygrb_plot_injs_results +++ b/bin/pygrb/pycbc_pygrb_plot_injs_results @@ -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