From b54a7282dec433e9bc588213e96447f39ef3eddb Mon Sep 17 00:00:00 2001 From: cfuselli Date: Tue, 12 Dec 2023 14:13:52 +0100 Subject: [PATCH] explain error --- amstrax/plugins/raw_records/daqreader.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/amstrax/plugins/raw_records/daqreader.py b/amstrax/plugins/raw_records/daqreader.py index 2acf8609..e1c34cb1 100644 --- a/amstrax/plugins/raw_records/daqreader.py +++ b/amstrax/plugins/raw_records/daqreader.py @@ -404,6 +404,8 @@ def split_channel_ranges(records, channel_ranges): n_in_detector[d_i] += 1 break else: + # channel_ranges should be sorted ascending. + print(r["time"], r["channel"], channel_ranges) raise ValueError(f"Bad data from DAQ: data in unknown channel {r['channel']}") # Allocate memory