Skip to content

Commit 5715005

Browse files
authored
Merge pull request #2129 from effigies/ants/version
FIX: Do not assume githash in ANTs version
2 parents f85cf0d + eecdc5c commit 5715005

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nipype/interfaces/ants/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ def version(self):
5353
else:
5454
return None
5555

56-
v_string, githash = self._version.split('-')
56+
# -githash may or may not be appended
57+
v_string = self._version.split('-')[0]
5758

5859
# 2.2.0-equivalent version string
5960
if 'post' in v_string and LooseVersion(v_string) >= LooseVersion('2.1.0.post789'):

0 commit comments

Comments
 (0)