Skip to content

Commit

Permalink
MAINT: rename attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
laborleben committed Nov 7, 2018
1 parent ea2f23b commit ffc9f12
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pybar/scans/scan_eudaq_ext_trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ def handle_data(self, data, new_file=False, flush=True):
bad_event = False
for data_tuple in data[0]: # only use data from first module
events = build_events_from_raw_data(data_tuple[0]) # build events from raw data array
for item in events:
if item.shape[0] == 0:
for event in events:
if event.shape[0] == 0:
continue
if is_trigger_word(item[0]):
if is_trigger_word(event[0]):
if self.remaining_data.shape[0] > 0:
# check trigger number
if is_trigger_word(self.remaining_data[0]):
Expand Down Expand Up @@ -133,9 +133,9 @@ def handle_data(self, data, new_file=False, flush=True):
pp.SendEvent(self.remaining_data)
# outside if statement so that any data before first trigger becomes an event
# pp.SendEvent(self.remaining_data)
self.remaining_data = item
self.remaining_data = event
else:
self.remaining_data = np.concatenate([self.remaining_data, item])
self.remaining_data = np.concatenate([self.remaining_data, event])
super(EudaqExtTriggerScan, self).handle_data(data=data, new_file=new_file, flush=flush)


Expand Down

0 comments on commit ffc9f12

Please sign in to comment.