Skip to content

Commit d4ff0ed

Browse files
committed
Merge remote-tracking branch 'upstream/master' into fix/search
* upstream/master: (23 commits) fix out_file template bugs FIX: Do not cache grab_exts fix: remove deprecated output from _list_outputs ENH: Reorder traits for better error message ENH: Add info to ImageFile for better error messages ENH: Simplify listifying logic Revert "changing in_files in RealignInputSpec" Revert "ENH: Re-enable spm.Realign to take lists of lists of files" ENH: Re-enable spm.Realign to take lists of lists of files FIX: argstr for mask in BlurToFWHM updated PR FIX: Default value for sbatch_args (SLURMGraph) BF: fix ortvec argstr do not access _id on nodes for logging minor fixes [skip ci] Add missing changelog entry redo changes make ignore_exception a class attribute improve message, fix error in logging add longer description to warning ...
2 parents 8425ebd + 872d749 commit d4ff0ed

File tree

19 files changed

+117
-64
lines changed

19 files changed

+117
-64
lines changed

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Upcoming release
66

77
###### [Full changelog](https://github.com/nipy/nipype/milestone/16?closed=1)
88

9+
* FIX: Change to interface workdir within ``Interface.run()`` instead Node (https://github.com/nipy/nipype/pull/2384)
910
* FIX: PBS plugin submissions (https://github.com/nipy/nipype/pull/2344)
1011
* FIX: Graph plugins submissions (https://github.com/nipy/nipype/pull/2359)
1112
* FIX: Logging error if % in interface command (https://github.com/nipy/nipype/pull/2364)

doc/users/saving_workflows.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,34 +66,34 @@ This will create a file "outputtestsave.py" with the following content:
6666
inode = Node(IdentityInterface(fields=['a'], mandatory_inputs=True), name="inode")
6767
# Node: testsave.testfunc
6868
testfunc = Node(Function(input_names=['a'], output_names=['output']), name="testfunc")
69+
testfunc.interface.ignore_exception = False
6970
def testfunc_1(in1):
7071
"""dummy func
7172
"""
7273
out = in1 + 'foo' + "out1"
7374
return out
7475

7576
testfunc.inputs.function_str = getsource(testfunc_1)
76-
testfunc.inputs.ignore_exception = False
7777
testfunc.inputs.in1 = '-sub'
7878
testsave.connect(inode, "a", testfunc, "in1")
7979
# Node: testsave.bet2
8080
bet2 = MapNode(BET(), iterfield=['infile'], name="bet2")
81+
bet2.interface.ignore_exception = False
8182
bet2.iterables = ('frac', [0.4, 0.5])
8283
bet2.inputs.environ = {'FSLOUTPUTTYPE': 'NIFTI_GZ'}
83-
bet2.inputs.ignore_exception = False
8484
bet2.inputs.output_type = 'NIFTI_GZ'
8585
bet2.terminal_output = 'stream'
8686
# Node: testsave.bet
8787
bet = Node(BET(), name="bet")
88+
bet.interface.ignore_exception = False
8889
bet.iterables = ('frac', [0.3, 0.4])
8990
bet.inputs.environ = {'FSLOUTPUTTYPE': 'NIFTI_GZ'}
90-
bet.inputs.ignore_exception = False
9191
bet.inputs.output_type = 'NIFTI_GZ'
9292
bet.terminal_output = 'stream'
9393
# Node: testsave.maths
9494
maths = Node(ImageMaths(), name="maths")
95+
maths.interface.ignore_exception = False
9596
maths.inputs.environ = {'FSLOUTPUTTYPE': 'NIFTI_GZ'}
96-
maths.inputs.ignore_exception = False
9797
maths.inputs.output_type = 'NIFTI_GZ'
9898
maths.terminal_output = 'stream'
9999
testsave.connect(bet2, ('mask_file', func), maths, "in_file2")

nipype/algorithms/icc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ def _run_interface(self, runtime):
8080
def _list_outputs(self):
8181
outputs = self._outputs().get()
8282
outputs['icc_map'] = os.path.abspath('icc_map.nii')
83-
outputs['sessions_F_map'] = os.path.abspath('sessions_F_map.nii')
8483
outputs['session_var_map'] = os.path.abspath('session_var_map.nii')
8584
outputs['subject_var_map'] = os.path.abspath('subject_var_map.nii')
8685
return outputs

nipype/caching/memory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def __call__(self, **kwargs):
9494
return out
9595

9696
def __repr__(self):
97-
return '{}({}.{}}, base_dir={})'.format(
97+
return '{}({}.{}), base_dir={})'.format(
9898
self.__class__.__name__, self.interface.__module__,
9999
self.interface.__name__, self.base_dir)
100100

nipype/interfaces/afni/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ class DeconvolveInputSpec(AFNICommandInputSpec):
142142
desc='this option lets you input a rectangular array of 1 or more '
143143
'baseline vectors from a file. This method is a fast way to '
144144
'include a lot of baseline regressors in one step. ',
145-
argstr='ortvec %s')
145+
argstr='-ortvec %s %s')
146146
x1D = File(desc='specify name for saved X matrix', argstr='-x1D %s')
147147
x1D_stop = traits.Bool(
148148
desc='stop running after writing .xmat.1D file', argstr='-x1D_stop')

nipype/interfaces/afni/preprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ class BlurToFWHMInputSpec(AFNICommandInputSpec):
930930
mask = File(
931931
desc='Mask dataset, if desired. Voxels NOT in mask will be set to zero '
932932
'in output.',
933-
argstr='-blurmaster %s',
933+
argstr='-mask %s',
934934
exists=True)
935935

936936

nipype/interfaces/afni/tests/test_auto_BlurToFWHM.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def test_BlurToFWHM_inputs():
2323
argstr='-input %s',
2424
mandatory=True,
2525
),
26-
mask=dict(argstr='-blurmaster %s', ),
26+
mask=dict(argstr='-mask %s', ),
2727
num_threads=dict(
2828
nohash=True,
2929
usedefault=True,

nipype/interfaces/afni/tests/test_auto_Deconvolve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def test_Deconvolve_inputs():
7373
nohash=True,
7474
usedefault=True,
7575
),
76-
ortvec=dict(argstr='ortvec %s', ),
76+
ortvec=dict(argstr='-ortvec %s %s', ),
7777
out_file=dict(argstr='-bucket %s', ),
7878
outputtype=dict(),
7979
polort=dict(argstr='-polort %d', ),

nipype/interfaces/afni/tests/test_auto_Merge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def test_Merge_inputs():
3232
),
3333
out_file=dict(
3434
argstr='-prefix %s',
35-
name_source='in_file',
35+
name_source='in_files',
3636
name_template='%s_merge',
3737
),
3838
outputtype=dict(),

nipype/interfaces/afni/tests/test_auto_Zcat.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ def test_Zcat_inputs():
3636
),
3737
out_file=dict(
3838
argstr='-prefix %s',
39-
name_template='zcat',
39+
name_source='in_files',
40+
name_template='%s_zcat',
4041
),
4142
outputtype=dict(),
4243
terminal_output=dict(

0 commit comments

Comments
 (0)