diff --git a/nipype/workflows/dmri/fsl/artifacts.py b/nipype/workflows/dmri/fsl/artifacts.py index 2b1c6fa183..c581769ba3 100644 --- a/nipype/workflows/dmri/fsl/artifacts.py +++ b/nipype/workflows/dmri/fsl/artifacts.py @@ -236,6 +236,7 @@ def _gen_index(in_file): import numpy as np import nibabel as nb import os + from nipype.utils import NUMPY_MMAP out_file = os.path.abspath('index.txt') vols = nb.load(in_file, mmap=NUMPY_MMAP).get_data().shape[-1] np.savetxt(out_file, np.ones((vols,)).T)