Skip to content

Commit

Permalink
Fixes #5
Browse files Browse the repository at this point in the history
  • Loading branch information
cbespin committed Dec 13, 2024
1 parent 0f62053 commit 30be62d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aidatlu/main/data_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ def _transform_data(
"""
if np.any(w5) != 0:
self.log.warning("Corrupted Data found")

# Cast w0 to uint64 for concatenating 2 x 32bit to 64bit later
w0 = w0.astype(np.uint64)

out_array = np.zeros(len(w3), dtype=self.features)
out_array["eventnumber"] = w3
out_array["timestamp"] = (w0 & 0x0000FFFF << 32) + w1
Expand Down

0 comments on commit 30be62d

Please sign in to comment.