mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-20 12:40:31 +08:00
Changed to scikit-image preferred syntax
This commit is contained in:
@@ -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.')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user