Skip to content

Commit c26c370

Browse files
authored
fix parking of counter for numpy 2.0
1 parent 60b7c50 commit c26c370

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ctapipe_io_lst/anyarray_dtypes.py

+1
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,5 @@ def parse_tib_10MHz_counter(counter):
7070
7171
The counter is stored using 3 uint8 values forming a 24-bit unsigned integer
7272
"""
73+
counter = counter.astype(np.uint32)
7374
return counter[0] + (counter[1] << 8) + (counter[2] << 16)

0 commit comments

Comments
 (0)