Skip to content

Commit

Permalink
Remove iinfo for bool array
Browse files Browse the repository at this point in the history
np.iinfo is not implemented for bool type (yet).

xref: numpy/numpy#8849
  • Loading branch information
k-dominik committed May 28, 2024
1 parent 7e33269 commit 8de03b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/datatypes/inspect_binary_8bit_skimage_napari.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@
# - The issue is that boolean type images cannot be saved as such on disk, because e.g. TIFF does not support this datatype
binary_image = ( image == 255 )
print(image.shape, binary_image.shape) # ensure we did not mess up the shape
print(np.iinfo(binary_image.dtype))
print(np.unique(binary_image))
# np.iinfo is not implemented for bool

0 comments on commit 8de03b7

Please sign in to comment.