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

Commit e6534f7

Browse files
authored
Merge pull request #50 from richford/nslices-error
Fix nslices error in id_outliers_fn
2 parents a4e687e + cbc9347 commit e6534f7

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
@@ -402,7 +402,7 @@ def num_outliers(scan, outliers):
402402

403403
if 0 < threshold < 1:
404404
img = nib.load(dwi_file)
405-
threshold *= img.shape[img.header.get_n_slices()]
405+
threshold *= img.header.get_n_slices()
406406

407407
drop_scans = np.array([
408408
s for s in scans

0 commit comments

Comments
 (0)