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

Commit 8d1c93a

Browse files
committed
fix: img.get_data() instead of .get_fdata() which kills my python kernel
1 parent ce798f6 commit 8d1c93a

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
@@ -519,7 +519,7 @@ def drop_outliers_fn(in_file, in_bval, in_bvec, drop_scans):
519519
from nipype.utils.filemanip import fname_presuffix
520520

521521
img = nib.load(op.abspath(in_file))
522-
img_data = img.get_fdata()
522+
img_data = img.get_data()
523523
img_data_thinned = np.delete(img_data,
524524
drop_scans,
525525
axis=3)

0 commit comments

Comments
 (0)