From 3c7d715f29e2978623f444e45b96f91214868197 Mon Sep 17 00:00:00 2001 From: Maximilian Linhoff Date: Fri, 27 Sep 2024 01:15:30 +0100 Subject: [PATCH] Fix dtype of tel_id in subarray hdf table --- src/ctapipe/instrument/subarray.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ctapipe/instrument/subarray.py b/src/ctapipe/instrument/subarray.py index eafd56c2a95..d2500ab6f33 100644 --- a/src/ctapipe/instrument/subarray.py +++ b/src/ctapipe/instrument/subarray.py @@ -310,7 +310,7 @@ def to_table(self, kind="subarray"): tab = Table( dict( - tel_id=np.array(ids, dtype=np.short), + tel_id=np.array(ids, dtype=np.uint16), name=tel_names, type=tel_types, pos_x=tel_coords.x,