Skip to content

Commit

Permalink
replace depr. np.bool8
Browse files Browse the repository at this point in the history
  • Loading branch information
nicHoch committed Nov 11, 2024
1 parent 829ca29 commit bbd5550
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stixcore/products/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def _get_energy_bins(packets, nixlower, nixuppper):
Full energy mask of len 33
"""
energy_bin_mask = np.array(packets.get_value(nixlower), np.uint32)
energy_bin_mask_upper = np.array(packets.get_value(nixuppper), np.bool)
energy_bin_mask_upper = np.array(packets.get_value(nixuppper), np.bool_)
full_energy_mask = [format(mask, 'b').zfill(32)[::-1] + format(upper, 'b') for mask, upper in
zip(energy_bin_mask, energy_bin_mask_upper)]
full_energy_mask = [list(map(int, m)) for m in full_energy_mask]
Expand Down

0 comments on commit bbd5550

Please sign in to comment.