@@ -88,10 +88,10 @@ def _get_coordinates(self, data, affine):
88
88
def _eucl_min (self , nii1 , nii2 ):
89
89
from scipy .spatial .distance import cdist , euclidean
90
90
91
- origdata1 = np .asanyarray (nii1 .dataobj ).astype (np . bool )
91
+ origdata1 = np .asanyarray (nii1 .dataobj ).astype (bool )
92
92
border1 = self ._find_border (origdata1 )
93
93
94
- origdata2 = np .asanyarray (nii2 .dataobj ).astype (np . bool )
94
+ origdata2 = np .asanyarray (nii2 .dataobj ).astype (bool )
95
95
border2 = self ._find_border (origdata2 )
96
96
97
97
set1_coordinates = self ._get_coordinates (border1 , nii1 .affine )
@@ -134,10 +134,10 @@ def _eucl_cog(self, nii1, nii2):
134
134
def _eucl_mean (self , nii1 , nii2 , weighted = False ):
135
135
from scipy .spatial .distance import cdist
136
136
137
- origdata1 = np .asanyarray (nii1 .dataobj ).astype (np . bool )
137
+ origdata1 = np .asanyarray (nii1 .dataobj ).astype (bool )
138
138
border1 = self ._find_border (origdata1 )
139
139
140
- origdata2 = np .asanyarray (nii2 .dataobj ).astype (np . bool )
140
+ origdata2 = np .asanyarray (nii2 .dataobj ).astype (bool )
141
141
142
142
set1_coordinates = self ._get_coordinates (border1 , nii1 .affine )
143
143
set2_coordinates = self ._get_coordinates (origdata2 , nii2 .affine )
0 commit comments