Skip to content

Commit

Permalink
fix numpy AttributeError for int
Browse files Browse the repository at this point in the history
  • Loading branch information
KhalilM94 authored and KhalilM94 committed Oct 10, 2023
1 parent 0112659 commit eb7192c
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.int_)
else: bbl = np.ones(self.bands, dtype=np.int_)

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

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

0 comments on commit eb7192c

Please sign in to comment.