Skip to content

Commit

Permalink
Merge pull request #2622 from cta-observatory/fix_dtype
Browse files Browse the repository at this point in the history
Fix dtype of tel_id in subarray hdf table
  • Loading branch information
maxnoe authored Dec 5, 2024
2 parents df2f90d + 3c7d715 commit 8469bd0
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 8469bd0

Please sign in to comment.