We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31f5ecd commit 3777370Copy full SHA for 3777370
nipype/interfaces/afni/base.py
@@ -41,12 +41,15 @@ def version():
41
try:
42
clout = CommandLine(command='afni_vcheck',
43
terminal_output='allatonce').run()
44
+ out = clout.runtime.stdout.split('\n')[1]
45
except IOError:
46
# If afni_vcheck is not present, return None
47
warn('afni_vcheck executable not found.')
48
return None
-
49
- out = clout.runtime.stdout.split('\n')[1]
+ except RuntimeError:
50
+ # If AFNI is outdated, afni_vcheck throws error
51
+ warn('AFNI is outdated')
52
+ out = clout.runtime.stderr.split('\n')[1]
53
54
# Try to parse the version number
55
m = re.search(r'[\.\d]*$', out)
0 commit comments