Commit 77f71098 authored by Vincent Michel's avatar Vincent Michel

Merge branch 'fix-buffer-parsing' into 'master'

Make buffer parsing more robust

See merge request !3
parents 6afda593 1054ac19
Pipeline #6169 passed with stages
in 1 minute and 17 seconds
......@@ -89,6 +89,10 @@ def parse_mapping_buffer(raw):
spectrum.dtype = spectrum_type
current += size
# Discard garbage
if channel_id in spectrums[pixel]:
continue
# Set data
stats = stats_from_mapping_mode(stats_block[index])
spectrums[pixel][channel_id] = spectrum
......
Markdown is supported
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