From 2c84a2135f8d3c566c9b9970544794e52262fb48 Mon Sep 17 00:00:00 2001 From: Tony S Yu Date: Fri, 24 Aug 2012 22:36:20 -0400 Subject: [PATCH] Remove custom dtype range Bool support was added in gh-#260 --- skimage/viewer/plugins/overlayplugin.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/skimage/viewer/plugins/overlayplugin.py b/skimage/viewer/plugins/overlayplugin.py index 11ca5ab5..f9d37e59 100644 --- a/skimage/viewer/plugins/overlayplugin.py +++ b/skimage/viewer/plugins/overlayplugin.py @@ -1,15 +1,8 @@ -import numpy as np - -from skimage.util import dtype +from skimage.util.dtype import dtype_range from .base import Plugin from ..utils import ClearColormap -#TODO: Maybe this bool definition should be moved to skimage.util.dtype. -dtype_range = dtype.dtype_range.copy() -dtype_range[np.bool_] = (False, True) - - class OverlayPlugin(Plugin): """Plugin for ImageViewer that displays an overlay on top of main image.