MAINT: PEP8

This commit is contained in:
François Boulogne
2016-05-25 20:50:42 +02:00
parent c99ba1344c
commit 07f753d081
2 changed files with 5 additions and 2 deletions
+1
View File
@@ -1,5 +1,6 @@
from ._ccomp import label as _label
def label(input, neighbors=None, background=None, return_num=False,
connectivity=None):
return _label(input, neighbors, background, return_num, connectivity)
+4 -2
View File
@@ -94,7 +94,8 @@ class _RegionProperties(object):
if intensity_image is not None:
if not intensity_image.shape == label_image.shape:
raise ValueError('Label and intensity image must have the same shape.')
raise ValueError('Label and intensity image must have the'
'same shape.')
self.label = label
@@ -282,7 +283,8 @@ class _RegionProperties(object):
@_cached
@only2d
def weighted_moments(self):
return _moments.moments_central(self._intensity_image_double(), 0, 0, 3)
return _moments.moments_central(self._intensity_image_double(),
0, 0, 3)
@_cached
@only2d