Changed to scikit-image preferred syntax

This commit is contained in:
stevendbrown
2015-11-09 18:30:27 -08:00
parent 157fef3963
commit 87adb532e7
+1 -1
View File
@@ -109,7 +109,7 @@ class _RegionProperties(object):
def __init__(self, slice, label, label_image, intensity_image,
cache_active):
if not intensity_image is None:
if intensity_image is not None:
if not intensity_image.shape == label_image.shape:
raise ValueError('Label and intensity image must be the same shape.')