diff options
Diffstat (limited to 'utils/sddm/plot_energy.py')
-rw-r--r-- | utils/sddm/plot_energy.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/sddm/plot_energy.py b/utils/sddm/plot_energy.py index d9edf11..7852412 100644 --- a/utils/sddm/plot_energy.py +++ b/utils/sddm/plot_energy.py @@ -457,9 +457,9 @@ def get_events(filenames, merge_fits=False, nhit_thresh=None, apply_nhit_trigger first_gtid = rhdr.set_index('run').to_dict()['first_gtid'] - # First, remove junk events since orphans won't have a 50 MHz clock and so - # could screw up the 50 MHz clock unwrapping - ev = ev[ev.dc & DC_JUNK == 0] + # First, remove orphans since they won't have a 50 MHz clock and so could + # screw up the 50 MHz clock unwrapping + ev = ev[(ev.gtid == 0) & (ev.gtr == 0)] # We need the events to be in time order here in order to calculate the # delta t between events. It's not obvious exactly how to do this. You |