Skip to content

Commit

Permalink
FIX:
Browse files Browse the repository at this point in the history
 - removed the np.bool for bool inherited from the main branch
 - tested with LST1 data and ensure that it runs properly
  • Loading branch information
Marcel Strzys committed Aug 5, 2024
1 parent af0e3a9 commit 33ea973
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pybkgmodel/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def __init__(self, counts, xedges, yedges, energy_edges, center=None, mask=None,
ny = yedges.size - 1

if mask is None:
mask = np.ones((nx, ny), dtype=np.bool)
mask = np.ones((nx, ny), dtype=bool)

if exposure is None:
exposure = np.ones((nx, ny), dtype=np.float) * u.s
Expand Down Expand Up @@ -329,7 +329,7 @@ def mask_region(self, region):
def mask_reset(self):
"""_summary_
"""
self.mask = np.ones((self.xedges.size - 1, self.yedges.size - 1), dtype=np.bool)
self.mask = np.ones((self.xedges.size - 1, self.yedges.size - 1), dtype=bool)


def plot(self, energy_bin_id=0, ax_unit='deg', val_unit='1/s', **kwargs):
Expand Down

0 comments on commit 33ea973

Please sign in to comment.