Skip to content

Commit 764eab6

Browse files
committed
Merge branch 'master' into enh/AddCSVRow
Conflicts: CHANGES
2 parents 5e780bf + af406fe commit 764eab6

File tree

16 files changed

+641
-104
lines changed

16 files changed

+641
-104
lines changed

CHANGES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ Next Release
22
============
33

44
* ENH: New miscelaneous interface: AddCSVRow
5+
* ENH: FUGUE interface has been refactored to use the name_template system, 3 examples
6+
added to doctests, some bugs solved.
7+
* ENH: Added new interfaces (fsl.utils.WarpUtils, ConvertWarp) to fnirtfileutils and convertwarp
58
* API: Interfaces to external packages are no longer available in the top-level
69
``nipype`` namespace, and must be imported directly (e.g.
710
``from nipype.interfaces import fsl``).

nipype/algorithms/misc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -835,10 +835,10 @@ def __init__(self, infields=None, force_run=True, **kwargs):
835835

836836
if infields:
837837
for key in infields:
838-
self.inputs.add_trait( key, traits.Any )
838+
self.inputs.add_trait(key, traits.Any)
839839
self.inputs._outputs[key] = Undefined
840840
undefined_traits[key] = Undefined
841-
self.inputs.trait_set(trait_change_notify=False, **undefined_traits )
841+
self.inputs.trait_set(trait_change_notify=False, **undefined_traits)
842842

843843
if force_run:
844844
self._always_run = True
@@ -876,7 +876,7 @@ def _run_interface(self, runtime):
876876

877877
if op.exists(self.inputs.in_file):
878878
formerdf = pd.read_csv(self.inputs.in_file, index_col=0)
879-
df = pd.concat( [formerdf, df], ignore_index=True )
879+
df = pd.concat([formerdf, df], ignore_index=True )
880880

881881
with open(self.inputs.in_file, 'w') as f:
882882
df.to_csv(f)

nipype/interfaces/afni/tests/test_auto_Volreg.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ def test_Volreg_inputs():
3232
name_source='in_file',
3333
name_template='%s.1D',
3434
),
35+
oned_matrix_save=dict(argstr='-1Dmatrix_save %s',
36+
keep_extension=True,
37+
name_source='in_file',
38+
name_template='%s.aff12.1D',
39+
),
3540
out_file=dict(argstr='-prefix %s',
3641
name_source='in_file',
3742
name_template='%s_volreg',
@@ -57,6 +62,7 @@ def test_Volreg_inputs():
5762
def test_Volreg_outputs():
5863
output_map = dict(md1d_file=dict(),
5964
oned_file=dict(),
65+
oned_matrix_save=dict(),
6066
out_file=dict(),
6167
)
6268
outputs = Volreg.output_spec()
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from nipype.testing import assert_equal
3+
from nipype.interfaces.ants.segmentation import LaplacianThickness
4+
5+
def test_LaplacianThickness_inputs():
6+
input_map = dict(args=dict(argstr='%s',
7+
),
8+
dT=dict(argstr='dT=%d',
9+
position=6,
10+
),
11+
environ=dict(nohash=True,
12+
usedefault=True,
13+
),
14+
ignore_exception=dict(nohash=True,
15+
usedefault=True,
16+
),
17+
input_gm=dict(argstr='%s',
18+
copyfile=True,
19+
mandatory=True,
20+
position=2,
21+
),
22+
input_wm=dict(argstr='%s',
23+
copyfile=True,
24+
mandatory=True,
25+
position=1,
26+
),
27+
num_threads=dict(nohash=True,
28+
usedefault=True,
29+
),
30+
opt_tolerance=dict(argstr='optional-laplacian-tolerance=%d',
31+
position=8,
32+
),
33+
output_image=dict(argstr='%s',
34+
genfile=True,
35+
hash_files=False,
36+
position=3,
37+
),
38+
prior_thickness=dict(argstr='priorthickval=%d',
39+
position=5,
40+
),
41+
smooth_param=dict(argstr='smoothparam=%d',
42+
position=4,
43+
),
44+
sulcus_prior=dict(argstr='use-sulcus-prior',
45+
position=7,
46+
),
47+
terminal_output=dict(mandatory=True,
48+
nohash=True,
49+
),
50+
)
51+
inputs = LaplacianThickness.input_spec()
52+
53+
for key, metadata in input_map.items():
54+
for metakey, value in metadata.items():
55+
yield assert_equal, getattr(inputs.traits()[key], metakey), value
56+
57+
def test_LaplacianThickness_outputs():
58+
output_map = dict(output_image=dict(),
59+
)
60+
outputs = LaplacianThickness.output_spec()
61+
62+
for key, metadata in output_map.items():
63+
for metakey, value in metadata.items():
64+
yield assert_equal, getattr(outputs.traits()[key], metakey), value
65+

nipype/interfaces/fsl/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
ImageStats, FilterRegressor, Overlay, Slicer,
1717
PlotTimeSeries, PlotMotionParams, ConvertXFM,
1818
SwapDimensions, PowerSpectrum, Reorient2Std,
19-
Complex, InvWarp)
19+
Complex, InvWarp, WarpUtils, ConvertWarp)
2020

2121
from .epi import (PrepareFieldmap, TOPUP, ApplyTOPUP, Eddy, EPIDeWarp,
2222
SigLoss, EddyCorrect)

0 commit comments

Comments
 (0)