Skip to content

Commit

Permalink
i.pysptools.unmix: fix numpy dtype checks (#923)
Browse files Browse the repository at this point in the history
the used syntax did not work
  • Loading branch information
pesekon2 committed Jun 13, 2023
1 parent dbe3e14 commit 0afa5ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/imagery/i.pysptools.unmix/i.pysptools.unmix.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ def main():

# Build numpy stack from imagery group
raster = r.raster2numpy(map[0], mapset=map[1])
if raster == np.float64:
raster = float32(raster)
if raster.dtype == np.float64:
raster = raster.astype(np.float32)
gs.warning(
"{} is of type Float64.\
Float64 is currently not supported.\
Expand Down

0 comments on commit 0afa5ad

Please sign in to comment.