From 8de03b7b983d91957579d7014937a3fe50680dda Mon Sep 17 00:00:00 2001 From: k-dominik Date: Tue, 28 May 2024 08:05:00 +0200 Subject: [PATCH] Remove iinfo for bool array np.iinfo is not implemented for bool type (yet). xref: https://github.com/numpy/numpy/issues/8849 --- _includes/datatypes/inspect_binary_8bit_skimage_napari.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/datatypes/inspect_binary_8bit_skimage_napari.py b/_includes/datatypes/inspect_binary_8bit_skimage_napari.py index db8fd34c..d2275329 100644 --- a/_includes/datatypes/inspect_binary_8bit_skimage_napari.py +++ b/_includes/datatypes/inspect_binary_8bit_skimage_napari.py @@ -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