Skip to content

Commit

Permalink
fix deprecated np.int data type
Browse files Browse the repository at this point in the history
  • Loading branch information
KhalilM94 authored and KhalilM94 committed Oct 10, 2023
1 parent eb7192c commit c3d09bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions enmapbox/apps/ensomap/hys/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,11 +415,11 @@ def select_bands(self, bands):

# get bbl
bbl = self.meta.get("bbl")
if bbl is not None: bbl = np.asarray(bbl, dtype=np.int_)
else: bbl = np.ones(self.bands, dtype=np.int_)
if bbl is not None: bbl = np.asarray(bbl, dtype=np.int16)
else: bbl = np.ones(self.bands, dtype=np.int16)

# get band indices
bind = np.arange(self.bands, dtype=np.int_)
bind = np.arange(self.bands, dtype=np.int16)

# remove bad band
ind = np.where(bbl == 1)
Expand Down

0 comments on commit c3d09bb

Please sign in to comment.