Skip to content

Commit

Permalink
Fix volume scale of int8 array. Bug #10029
Browse files Browse the repository at this point in the history
  • Loading branch information
tomgoddard committed Oct 20, 2023
1 parent 1476e11 commit 375a87d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bundles/map_filter/src/scale.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ def read_matrix(self, ijk_origin, ijk_size, ijk_step, progress):
dti = iinfo(dt.dtype)
dmin = max(dti.min, dmin)
dmax = min(dti.max, dmax)
dt.clip(dmin, dmax, d)
dt.clip(dmin, dmax, dt)
d[:] = dt[:]
else:
d = dt.astype(t)

Expand Down

0 comments on commit 375a87d

Please sign in to comment.