File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -295,7 +295,10 @@ class AFNIPythonCommandInputSpec(CommandLineInputSpec):
295
295
class AFNIPythonCommand (AFNICommand ):
296
296
@property
297
297
def cmd (self ):
298
- return spawn .find_executable (super (AFNIPythonCommand , self ).cmd )
298
+ if spawn .find_executable (super (AFNIPythonCommand , self ).cmd ) != '' :
299
+ return spawn .find_executable (super (AFNIPythonCommand , self ).cmd )
300
+ else :
301
+ return super (AFNIPythonCommand , self ).cmd
299
302
300
303
@property
301
304
def cmdline (self ):
Original file line number Diff line number Diff line change @@ -168,8 +168,8 @@ class AlignEpiAnatPy(AFNIPythonCommand):
168
168
>>> al_ea.inputs.volreg = 'off'
169
169
>>> al_ea.inputs.tshift = 'off'
170
170
>>> al_ea.inputs.save_skullstrip = True
171
- >>> al_ea.cmdline # doctest: +ALLOW_UNICODE
172
- 'python2 /usr/lib/afni/bin/ align_epi_anat.py -anat structural.nii -epi_base 0 -epi_strip 3dAutomask -epi functional.nii -save_skullstrip -suffix _al -tshift off -volreg off'
171
+ >>> al_ea.cmdline # doctest: +ALLOW_UNICODE +ELLIPSIS
172
+ 'python2 ... align_epi_anat.py -anat structural.nii -epi_base 0 -epi_strip 3dAutomask -epi functional.nii -save_skullstrip -suffix _al -tshift off -volreg off'
173
173
>>> res = allineate.run() # doctest: +SKIP
174
174
"""
175
175
_cmd = 'align_epi_anat.py'
Original file line number Diff line number Diff line change @@ -1554,8 +1554,8 @@ class OneDToolPy(AFNIPythonCommand):
1554
1554
>>> odt.inputs.set_nruns = 3
1555
1555
>>> odt.inputs.demean = True
1556
1556
>>> odt.inputs.out_file = 'motion_dmean.1D'
1557
- >>> odt.cmdline # doctest: +ALLOW_UNICODE
1558
- 'python2 /usr/lib/afni/bin/ 1d_tool.py -demean -infile f1.1D -write motion_dmean.1D -set_nruns 3'
1557
+ >>> odt.cmdline # doctest: +ALLOW_UNICODE +ELLIPSIS
1558
+ 'python2 ... 1d_tool.py -demean -infile f1.1D -write motion_dmean.1D -set_nruns 3'
1559
1559
>>> res = odt.run() # doctest: +SKIP
1560
1560
"""
1561
1561
You can’t perform that action at this time.
0 commit comments