Skip to content

Commit

Permalink
Fix numpy.ndarray.interp error (opengeos#578)
Browse files Browse the repository at this point in the history
  • Loading branch information
kongdd committed Oct 17, 2023
1 parent 625eec4 commit bb1f168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leafmap/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -3696,7 +3696,7 @@ def numpy_to_image(
if np_array.dtype == np.float64 or np_array.dtype == np.float32:
# Convert the array to uint8
# np_array = (np_array * 255).astype(np.uint8)
np_array.interp(np_array, (np_array.min(), np_array.max()), (0, 255)).astype(
np.interp(np_array, (np_array.min(), np_array.max()), (0, 255)).astype(
np.uint8
)
else:
Expand Down

0 comments on commit bb1f168

Please sign in to comment.