Skip to content

Commit 7c6bc54

Browse files
committed
Merge pull request #1285 from alexsavio/importfix
fix: absolute to relative imports
2 parents cbdc3dd + f061ee7 commit 7c6bc54

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

nipype/interfaces/spm/preprocess.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
import numpy as np
2222

2323
# Local imports
24-
from nipype.interfaces.base import (OutputMultiPath, TraitedSpec, isdefined,
25-
traits, InputMultiPath, File)
26-
from nipype.interfaces.spm.base import (SPMCommand, scans_for_fname,
27-
func_is_3d, Info,
28-
scans_for_fnames, SPMCommandInputSpec)
29-
from nipype.utils.filemanip import (fname_presuffix, filename_to_list,
30-
list_to_filename, split_filename)
24+
from ..base import (OutputMultiPath, TraitedSpec, isdefined,
25+
traits, InputMultiPath, File)
26+
from .base import (SPMCommand, scans_for_fname,
27+
func_is_3d, Info,
28+
scans_for_fnames, SPMCommandInputSpec)
29+
from ...utils.filemanip import (fname_presuffix, filename_to_list,
30+
list_to_filename, split_filename)
3131

3232

3333
class SliceTimingInputSpec(SPMCommandInputSpec):

nipype/interfaces/spm/utils.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
3-
from nipype.interfaces.spm.base import SPMCommandInputSpec, SPMCommand, Info, scans_for_fnames, scans_for_fname
4-
from nipype.interfaces.matlab import MatlabCommand
5-
from nipype.interfaces.base import (TraitedSpec, BaseInterface,
6-
BaseInterfaceInputSpec, isdefined,
7-
OutputMultiPath, InputMultiPath)
8-
from nipype.interfaces.base import File, traits
9-
from nipype.utils.filemanip import split_filename, fname_presuffix, filename_to_list, list_to_filename
103
import os
114
import numpy as np
125

6+
from .base import SPMCommandInputSpec, SPMCommand, Info, scans_for_fnames, scans_for_fname
7+
from ..matlab import MatlabCommand
8+
from ..base import (TraitedSpec, BaseInterface,
9+
BaseInterfaceInputSpec, isdefined,
10+
OutputMultiPath, InputMultiPath)
11+
from ..base import File, traits
12+
from ...utils.filemanip import split_filename, fname_presuffix, filename_to_list, list_to_filename
13+
1314

1415
class Analyze2niiInputSpec(SPMCommandInputSpec):
1516
analyze_file = File(exists=True, mandatory=True)

0 commit comments

Comments
 (0)