File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -391,6 +391,9 @@ class CalcInputSpec(AFNICommandInputSpec):
391
391
requires = ['start_idx' ])
392
392
single_idx = traits .Int (
393
393
desc = 'volume index for in_file_a' )
394
+ overwrite = traits .Bool (
395
+ desc = 'overwrite output' ,
396
+ argstr = '-overwrite' )
394
397
other = File (
395
398
desc = 'other options' ,
396
399
argstr = '' )
@@ -416,6 +419,16 @@ class Calc(AFNICommand):
416
419
'3dcalc -a functional.nii -b functional2.nii -expr "a*b" -prefix functional_calc.nii.gz'
417
420
>>> res = calc.run() # doctest: +SKIP
418
421
422
+ >>> from nipype.interfaces import afni
423
+ >>> calc = afni.Calc()
424
+ >>> calc.inputs.in_file_a = 'functional.nii'
425
+ >>> calc.inputs.expr = '1'
426
+ >>> calc.inputs.out_file = 'rm.epi.all1'
427
+ >>> calc.inputs.overwrite = True
428
+ >>> calc.cmdline # doctest: +ALLOW_UNICODE
429
+ '3dcalc -a functional.nii -expr "1" -prefix rm.epi.all1 -overwrite'
430
+ >>> res = calc.run() # doctest: +SKIP
431
+
419
432
"""
420
433
421
434
_cmd = '3dcalc'
You can’t perform that action at this time.
0 commit comments