@@ -88,10 +88,10 @@ def _get_coordinates(self, data, affine):
8888 def _eucl_min (self , nii1 , nii2 ):
8989 from scipy .spatial .distance import cdist , euclidean
9090
91- origdata1 = np .asanyarray (nii1 .dataobj ).astype (np . bool )
91+ origdata1 = np .asanyarray (nii1 .dataobj ).astype (bool )
9292 border1 = self ._find_border (origdata1 )
9393
94- origdata2 = np .asanyarray (nii2 .dataobj ).astype (np . bool )
94+ origdata2 = np .asanyarray (nii2 .dataobj ).astype (bool )
9595 border2 = self ._find_border (origdata2 )
9696
9797 set1_coordinates = self ._get_coordinates (border1 , nii1 .affine )
@@ -134,10 +134,10 @@ def _eucl_cog(self, nii1, nii2):
134134 def _eucl_mean (self , nii1 , nii2 , weighted = False ):
135135 from scipy .spatial .distance import cdist
136136
137- origdata1 = np .asanyarray (nii1 .dataobj ).astype (np . bool )
137+ origdata1 = np .asanyarray (nii1 .dataobj ).astype (bool )
138138 border1 = self ._find_border (origdata1 )
139139
140- origdata2 = np .asanyarray (nii2 .dataobj ).astype (np . bool )
140+ origdata2 = np .asanyarray (nii2 .dataobj ).astype (bool )
141141
142142 set1_coordinates = self ._get_coordinates (border1 , nii1 .affine )
143143 set2_coordinates = self ._get_coordinates (origdata2 , nii2 .affine )
0 commit comments