Commit c48cfc60 authored by Vincent Michel's avatar Vincent Michel Committed by Sebastien Petitdemange

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

Make buffer parsing more robust

See merge request !3
parents fd820574 af5c0ba1
......@@ -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