Skip to content

Commit

Permalink
Fix dtype of tel_id in subarray hdf table
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnoe committed Sep 27, 2024
1 parent 3dc94da commit ffe48aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ctapipe/instrument/subarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ffe48aa

Please sign in to comment.