From 894046227c9a43865fe4345f3db6c2b499b10294 Mon Sep 17 00:00:00 2001 From: jluethi Date: Wed, 5 Apr 2017 14:05:31 +0200 Subject: [PATCH] Fixing type bug image.dtype is a numpy class that needs to be converted to string --- src/python/jtmodules/clip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/jtmodules/clip.py b/src/python/jtmodules/clip.py index 58605eb..16e96dc 100644 --- a/src/python/jtmodules/clip.py +++ b/src/python/jtmodules/clip.py @@ -56,7 +56,7 @@ def main(image, clipping_mask, plot=False): if plot: from jtlib import plotting - if image.dtype.startswith('uint'): + if str(image.dtype).startswith('uint'): plots = [ plotting.create_intensity_image_plot( image, 'ul', clip=True