File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 13
13
from nipype .pipeline import engine as pe
14
14
from nipype .interfaces import utility as niu
15
15
from nipype .interfaces .ants import (
16
- AI ,
17
16
Atropos ,
18
17
MultiplyImages ,
19
18
N4BiasFieldCorrection ,
20
- ResampleImageBySpacing ,
21
19
ThresholdImage ,
22
20
)
21
+ from nipype .interfaces .ants .utils import AI , ResampleImageBySpacing
23
22
24
23
from ..utils .misc import get_template_specs
25
24
from ..utils .connections import pop_file as _pop
Original file line number Diff line number Diff line change 2
2
# vi: set ft=python sts=4 ts=4 sw=4 et:
3
3
"""Patch ImageMath until https://github.com/nipy/nipype/pull/3210 is merged."""
4
4
from nipype .interfaces .base import Str
5
- from nipype .interfaces .ants .utils import ImageMath as _ImageMath
5
+ from nipype .interfaces .ants .utils import (
6
+ ImageMath as _ImageMath ,
7
+ ImageMathInputSpec as _InputSpec
8
+ )
6
9
7
10
8
- ImageMath = _ImageMath
9
- ImageMath .input_spec .operation = Str (
10
- mandatory = True , position = 3 , argstr = "%s" , desc = "operations and intputs"
11
- )
11
+ class _ImageMathInputSpec (_InputSpec ):
12
+ operation = Str (
13
+ mandatory = True , position = 3 , argstr = "%s" , desc = "operations and intputs"
14
+ )
15
+
16
+
17
+ class ImageMath (_ImageMath ):
18
+ input_spec = _ImageMathInputSpec
You can’t perform that action at this time.
0 commit comments