Skip to content

Commit

Permalink
Add explicit cast necessary in numpy >=2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnoe committed Jan 20, 2025
1 parent 05c4821 commit 37b9d2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ctapipe/io/simteleventsource.py
Original file line number Diff line number Diff line change
Expand Up @@ -998,8 +998,8 @@ def _get_r1_pixel_status(self, tel_id, selected_gain_channel):
low_gain_stored = selected_gain_channel == GainChannel.LOW

# set gain bits
pixel_status[high_gain_stored] |= PixelStatus.HIGH_GAIN_STORED
pixel_status[low_gain_stored] |= PixelStatus.LOW_GAIN_STORED
pixel_status[high_gain_stored] |= np.uint8(PixelStatus.HIGH_GAIN_STORED)
pixel_status[low_gain_stored] |= np.uint8(PixelStatus.LOW_GAIN_STORED)

# reset gain bits for completely disabled pixels
disabled = tel_desc["disabled_pixels"]["HV_disabled"]
Expand Down

0 comments on commit 37b9d2b

Please sign in to comment.