Commit 8bf6e816 authored by Jose Tiago Macara Coutinho's avatar Jose Tiago Macara Coutinho
Browse files

scan: fix missing motor position columns

parent e74ffdb1
......@@ -135,8 +135,10 @@ class ScanListener:
def __on_scan_data(self, scan_info, values):
elapsed_time = values['timestamp'] - scan_info['start_time_stamp']
motors = scan_info['motors'][1:] # take out timestamp placeholder
motor_values = [values[] for m in motors]
counter_values = [values[] for c in scan_info['counters']]
values = [elapsed_time] + counter_values
values = [elapsed_time] + motor_values + counter_values
if scan_info['type'] == 'ct':
# ct is actually a timescan(npoints=1).
norm_values = numpy.array(values) / scan_info['count_time']
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment