Skip to content

Commit 0de0296

Browse files
committed
fix: incorrect check
1 parent 35a9b0b commit 0de0296

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

nipype/interfaces/fsl/preprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ def _parse_inputs(self, skip=None):
563563
if not isdefined(self.inputs.verbose) or self.inputs.verbose == 0:
564564
self.inputs.verbose = 1
565565
if isdefined(self.inputs.apply_xfm) and self.inputs.apply_xfm:
566-
if not self.inputs.in_matrix_file or not self.inputs.uses_qform:
566+
if not self.inputs.in_matrix_file and not self.inputs.uses_qform:
567567
raise RuntimeError('Argument apply_xfm requires in_matrix_file '
568568
'or uses_qform arguments to run')
569569
skip.append('save_log')

nipype/interfaces/fsl/tests/test_auto_ApplyXfm.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ def test_ApplyXFM_inputs():
1010
xor=['apply_xfm'],
1111
),
1212
apply_xfm=dict(argstr='-applyxfm',
13-
requires=['in_matrix_file'],
1413
usedefault=True,
1514
),
1615
args=dict(argstr='%s',

0 commit comments

Comments
 (0)