Skip to content

Commit c98115d

Browse files
committed
enh: update imports to pull from nipype
this commit requires nipy/nipype#3236 to be merged.
1 parent 8efffff commit c98115d

File tree

3 files changed

+10
-668
lines changed

3 files changed

+10
-668
lines changed

niworkflows/anat/ants.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,20 @@
1313
from nipype.pipeline import engine as pe
1414
from nipype.interfaces import utility as niu
1515
from nipype.interfaces.fsl.maths import ApplyMask
16-
from nipype.interfaces.ants import N4BiasFieldCorrection, Atropos, MultiplyImages
16+
from nipype.interfaces.ants import (
17+
AI,
18+
Atropos,
19+
ImageMath,
20+
MultiplyImages,
21+
N4BiasFieldCorrection,
22+
ResampleImageBySpacing,
23+
ThresholdImage,
24+
)
1725

1826
from ..utils.misc import get_template_specs
1927
from ..utils.connections import pop_file as _pop
2028

2129
# niworkflows
22-
from ..interfaces.ants import (
23-
ImageMath,
24-
ResampleImageBySpacing,
25-
AI,
26-
ThresholdImage,
27-
)
2830
from ..interfaces.fixes import (
2931
FixHeaderRegistration as Registration,
3032
FixHeaderApplyTransforms as ApplyTransforms,

niworkflows/func/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66

77
from nipype.pipeline import engine as pe
88
from nipype.interfaces import utility as niu, fsl, afni
9+
from nipype.interfaces.ants.utils import AI
910

1011
from templateflow.api import get as get_template
1112

1213
from ..engine.workflows import LiterateWorkflow as Workflow
13-
from ..interfaces.ants import AI
1414
from ..interfaces.fixes import (
1515
FixHeaderRegistration as Registration,
1616
FixHeaderApplyTransforms as ApplyTransforms,

0 commit comments

Comments
 (0)