Commit 1054ac19 authored by Vincent Michel's avatar Vincent Michel Committed by U-ESRF\opid13
Browse files

Make buffer parsing more robust

parent 6afda593
Pipeline #6168 passed with stage
in 1 minute and 10 seconds
......@@ -89,6 +89,10 @@ def parse_mapping_buffer(raw):
spectrum.dtype = spectrum_type
current += size
# Discard garbage
if channel_id in spectrums[pixel]:
# Set data
stats = stats_from_mapping_mode(stats_block[index])
spectrums[pixel][channel_id] = spectrum
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