From 963cb241ba6c90e7bad00de336fade96de717bbb Mon Sep 17 00:00:00 2001
From: Thomas Kluyver <thomas@kluyver.me.uk>
Date: Wed, 9 Sep 2020 10:44:18 +0100
Subject: [PATCH] Use correct dtypes for cellId, pulseId & trainId

---
 cal_tools/cal_tools/agipdlib.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cal_tools/cal_tools/agipdlib.py b/cal_tools/cal_tools/agipdlib.py
index 7a83a61d9..7d16b27d9 100644
--- a/cal_tools/cal_tools/agipdlib.py
+++ b/cal_tools/cal_tools/agipdlib.py
@@ -1000,11 +1000,11 @@ class AgipdCorrections:
         for i in range(n_cores_files):
             self.shared_dict.append({})
             self.shared_dict[i]['cellId'] = sharedmem.empty(shape[0],
-                                                            dtype='i4')
+                                                            dtype='u2')
             self.shared_dict[i]['pulseId'] = sharedmem.empty(shape[0],
-                                                             dtype='i4')
+                                                             dtype='u8')
             self.shared_dict[i]['trainId'] = sharedmem.empty(shape[0],
-                                                             dtype='i4')
+                                                             dtype='u8')
             self.shared_dict[i]['moduleIdx'] = sharedmem.empty(1, dtype='i4')
             self.shared_dict[i]['nImg'] = sharedmem.empty(1, dtype='i4')
             self.shared_dict[i]['mask'] = sharedmem.empty(shape, dtype='i4')
-- 
GitLab