Skip to content

Commit f5056c4

Browse files
committed
RF: Move local absolute imports to file-level relative
1 parent b96180c commit f5056c4

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

nipype/interfaces/dipy/preprocess.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
import nibabel as nb
1414
import numpy as np
1515

16+
from ...utils import NUMPY_MMAP
17+
1618
from ... import logging
1719
from ..base import (traits, TraitedSpec, File, isdefined)
1820
from .base import DipyBaseInterface
@@ -179,7 +181,6 @@ def resample_proxy(in_file, order=3, new_zooms=None, out_file=None):
179181
Performs regridding of an image to set isotropic voxel sizes using dipy.
180182
"""
181183
from dipy.align.reslice import reslice
182-
from nipype.utils import NUMPY_MMAP
183184

184185
if out_file is None:
185186
fname, fext = op.splitext(op.basename(in_file))
@@ -223,7 +224,6 @@ def nlmeans_proxy(in_file, settings,
223224
from dipy.denoise.nlmeans import nlmeans
224225
from scipy.ndimage.morphology import binary_erosion
225226
from scipy import ndimage
226-
from nipype.utils import NUMPY_MMAP
227227

228228
if out_file is None:
229229
fname, fext = op.splitext(op.basename(in_file))

nipype/interfaces/petpvc.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
import os
1414

1515
from .base import TraitedSpec, CommandLineInputSpec, CommandLine, File, isdefined, traits
16-
from ..external.due import due, Doi, BibTeX
16+
from ..utils.filemanip import fname_presuffix
17+
from ..external.due import BibTeX
1718

1819
pvc_methods = ['GTM',
1920
'IY',
@@ -200,8 +201,6 @@ def _gen_fname(self, basename, cwd=None, suffix=None, change_ext=True,
200201
New filename based on given parameters.
201202
202203
"""
203-
from nipype.utils.filemanip import fname_presuffix
204-
205204
if basename == '':
206205
msg = 'Unable to generate filename for command %s. ' % self.cmd
207206
msg += 'basename is not set!'

0 commit comments

Comments
 (0)