From 30be62db43a9a57a2b5ad419eed73fc092a4ca4b Mon Sep 17 00:00:00 2001 From: Christian Bespin Date: Fri, 13 Dec 2024 11:21:44 +0100 Subject: [PATCH] Fixes #5 --- aidatlu/main/data_parser.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aidatlu/main/data_parser.py b/aidatlu/main/data_parser.py index 96351c1..5d988b8 100644 --- a/aidatlu/main/data_parser.py +++ b/aidatlu/main/data_parser.py @@ -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