Skip to content
This repository was archived by the owner on Dec 27, 2022. It is now read-only.

Commit b045873

Browse files
committed
Merge remote-tracking branch 'richford/nslices-error' into new_fsl
2 parents 738894a + cbc9347 commit b045873

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dmriprep/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ def num_outliers(scan, outliers):
407407

408408
if 0 < threshold < 1:
409409
img = nib.load(dwi_file)
410-
threshold *= img.shape[img.header.get_n_slices()]
410+
threshold *= img.header.get_n_slices()
411411

412412
drop_scans = np.array([
413413
s for s in scans

0 commit comments

Comments
 (0)