Commit 2d6d0f2b authored by GUILLOU Perceval's avatar GUILLOU Perceval
Browse files

fix bug

parent e116a767
......@@ -488,14 +488,16 @@ class ScanDataListener:
# Skip if partial data
for channel_name in channel_info["data"]:
if len(channel_info["data"][channel_name]) != self.scan_steps_index:
if len(channel_info["data"][channel_name]) < self.scan_steps_index:
return
# Get data for the current scan step
values_dict = {}
for channel_name in channel_info["data"]:
if channel_name in self.channel_names:
values_dict[channel_name] = channel_info["data"][channel_name][-1]
values_dict[channel_name] = channel_info["data"][channel_name][
self.scan_steps_index - 1
]
# Extract time data
elapsed_time_col = []
......
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