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 5500598 commit 61cc7a9Copy full SHA for 61cc7a9
nipype/interfaces/ants/base.py
@@ -48,13 +48,13 @@ def version(self):
48
49
for line in res.splitlines():
50
if line.startswith('ANTs Version: '):
51
- v_string = line.split()[2]
+ v_string, githash = line.split()[2].split('-')
52
break
53
else:
54
return None
55
56
# 2.2.0-equivalent version string
57
- if LooseVersion(v_string) >= LooseVersion('2.1.0.post789-g0740f'):
+ if 'post' in v_string and LooseVersion(v_string) >= LooseVersion('2.1.0.post789'):
58
self._version = '2.2.0'
59
60
self._version = '.'.join(v_string.split('.')[:3])
0 commit comments