Skip to content

Commit 518a489

Browse files
committed
revert unnecessary squeeze, correct docs
1 parent a742c9c commit 518a489

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/algorithms/confounds.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ def compute_noise_components(imgseries, mask_images, components_criterion=0.5,
12051205
12061206
Parameters
12071207
----------
1208-
imgseries: nibabel NIfTI object
1208+
imgseries: nibabel image
12091209
Time series data to be decomposed.
12101210
mask_images: list
12111211
List of nibabel images. Time series data from `img_series` is subset
@@ -1247,7 +1247,7 @@ def compute_noise_components(imgseries, mask_images, components_criterion=0.5,
12471247
components_criterion = -1
12481248
mask_names = mask_names or range(len(mask_images))
12491249
for name, img in zip(mask_names, mask_images):
1250-
mask = img.get_data().astype(np.bool).squeeze()
1250+
mask = img.get_data().astype(np.bool)
12511251
if imgseries.shape[:3] != mask.shape:
12521252
raise ValueError(
12531253
'Inputs for CompCor, timeseries and mask, do not have '

0 commit comments

Comments
 (0)