Skip to content

Commit 3c07566

Browse files
committed
Reorganize afni interface.
Create utils.py and move several functions from preprocess to utils. Also, add optional arguments to AFNItoNIFTI, standardize long strings and standardize spacing.
1 parent 7bab56d commit 3c07566

23 files changed

+2323
-1824
lines changed

.cache/v/cache/lastfailed

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"nipype/algorithms/tests/test_mesh_ops.py::test_ident_distances": true,
3+
"nipype/algorithms/tests/test_mesh_ops.py::test_trans_distances": true
4+
}

nipype/interfaces/afni/__init__.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,16 @@
88
"""
99

1010
from .base import Info
11-
from .preprocess import (AFNItoNIFTI, Allineate, AutoTcorrelate, Autobox,
12-
Automask, Bandpass, BlurInMask, BlurToFWHM, BrickStat,
13-
Calc, ClipLevel, Copy, DegreeCentrality, Despike,
14-
Detrend, ECM, Eval, FWHMx, Fim, Fourier, Hist, LFCD,
15-
MaskTool, Maskave, Means, Merge, Notes, OutlierCount,
16-
QualityIndex, ROIStats, Refit, Resample, Retroicor,
17-
Seg, SkullStrip, TCat, TCorr1D, TCorrMap, TCorrelate,
18-
TShift, TStat, To3D, Volreg, Warp, ZCutUp)
11+
from .preprocess import (Allineate, Automask, AutoTcorrelate,
12+
Bandpass, BlurInMask, BlurToFWHM,
13+
ClipLevel, DegreeCentrality, Despike,
14+
Detrend, ECM, Fim, Fourier, Hist, LFCD,
15+
Maskave, Means, OutlierCount,
16+
QualityIndex, ROIStats, Retroicor,
17+
Seg, SkullStrip, TCorr1D, TCorrMap, TCorrelate,
18+
TShift, Volreg, Warp)
1919
from .svm import (SVMTest, SVMTrain)
20+
from .utils import (AFNItoNIFTI, Autobox, BrickStat, Calc, Copy,
21+
Eval, FWHMx,
22+
MaskTool, Merge, Notes, Refit, Resample, TCat, TStat, To3D,
23+
ZCutUp,)

nipype/interfaces/afni/preprocess.py

Lines changed: 1029 additions & 1793 deletions
Large diffs are not rendered by default.

nipype/interfaces/afni/tests/test_auto_AFNItoNIFTI.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
22
from ....testing import assert_equal
3-
from ..preprocess import AFNItoNIFTI
3+
from ..utils import AFNItoNIFTI
44

55

66
def test_AFNItoNIFTI_inputs():
77
input_map = dict(args=dict(argstr='%s',
88
),
9+
denote=dict(argstr='-denote',
10+
),
911
environ=dict(nohash=True,
1012
usedefault=True,
1113
),
@@ -17,11 +19,20 @@ def test_AFNItoNIFTI_inputs():
1719
mandatory=True,
1820
position=-1,
1921
),
22+
newid=dict(argstr='-newid',
23+
xor=[u'oldid'],
24+
),
25+
oldid=dict(argstr='-oldid',
26+
xor=[u'newid'],
27+
),
2028
out_file=dict(argstr='-prefix %s',
29+
hash_files=False,
2130
name_source='in_file',
2231
name_template='%s.nii',
2332
),
2433
outputtype=dict(),
34+
pure=dict(argstr='-pure',
35+
),
2536
terminal_output=dict(nohash=True,
2637
),
2738
)

nipype/interfaces/afni/tests/test_auto_Autobox.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
22
from ....testing import assert_equal
3-
from ..preprocess import Autobox
3+
from ..utils import Autobox
44

55

66
def test_Autobox_inputs():

nipype/interfaces/afni/tests/test_auto_BrickStat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
22
from ....testing import assert_equal
3-
from ..preprocess import BrickStat
3+
from ..utils import BrickStat
44

55

66
def test_BrickStat_inputs():

nipype/interfaces/afni/tests/test_auto_Calc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
22
from ....testing import assert_equal
3-
from ..preprocess import Calc
3+
from ..utils import Calc
44

55

66
def test_Calc_inputs():
@@ -20,10 +20,10 @@ def test_Calc_inputs():
2020
mandatory=True,
2121
position=0,
2222
),
23-
in_file_b=dict(argstr=' -b %s',
23+
in_file_b=dict(argstr='-b %s',
2424
position=1,
2525
),
26-
in_file_c=dict(argstr=' -c %s',
26+
in_file_c=dict(argstr='-c %s',
2727
position=2,
2828
),
2929
other=dict(argstr='',

nipype/interfaces/afni/tests/test_auto_Copy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
22
from ....testing import assert_equal
3-
from ..preprocess import Copy
3+
from ..utils import Copy
44

55

66
def test_Copy_inputs():

nipype/interfaces/afni/tests/test_auto_Eval.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
22
from ....testing import assert_equal
3-
from ..preprocess import Eval
3+
from ..utils import Eval
44

55

66
def test_Eval_inputs():
@@ -20,10 +20,10 @@ def test_Eval_inputs():
2020
mandatory=True,
2121
position=0,
2222
),
23-
in_file_b=dict(argstr=' -b %s',
23+
in_file_b=dict(argstr='-b %s',
2424
position=1,
2525
),
26-
in_file_c=dict(argstr=' -c %s',
26+
in_file_c=dict(argstr='-c %s',
2727
position=2,
2828
),
2929
other=dict(argstr='',

nipype/interfaces/afni/tests/test_auto_FWHMx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
22
from ....testing import assert_equal
3-
from ..preprocess import FWHMx
3+
from ..utils import FWHMx
44

55

66
def test_FWHMx_inputs():

0 commit comments

Comments
 (0)