Skip to content

Commit

Permalink
explain error
Browse files Browse the repository at this point in the history
  • Loading branch information
cfuselli committed Dec 12, 2023
1 parent 705cf36 commit b54a728
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions amstrax/plugins/raw_records/daqreader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b54a728

Please sign in to comment.