Skip to content

Commit cc9ee50

Browse files
committed
Escape the expr parameter in 3dcalc.
1 parent 12abb6a commit cc9ee50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/interfaces/afni/preprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1514,7 +1514,7 @@ class CalcInputSpec(AFNITraitedSpec):
15141514
argstr='-a %s', position=0, mandatory=True, exists=True)
15151515
in_file_b = File(desc='operand file to 3dcalc',
15161516
argstr=' -b %s', position=1, exists=True)
1517-
expr = traits.Str(desc='expr', argstr='-expr %s', position=2,
1517+
expr = traits.Str(desc='expr', argstr='-expr "%s"', position=2,
15181518
mandatory=True)
15191519
out_file = File(desc='output file from 3dFourier', argstr='-prefix %s',
15201520
position=-1, genfile=True)

0 commit comments

Comments
 (0)