File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -48,18 +48,18 @@ def version(self):
48
48
49
49
for line in res .splitlines ():
50
50
if line .startswith ('ANTs Version: ' ):
51
- v_string , githash = line .split ()[2 ]. split ( '-' )
51
+ self . _version = line .split ()[2 ]
52
52
break
53
53
else :
54
54
return None
55
55
56
- # 2.2.0-equivalent version string
57
- if 'post' in v_string and LooseVersion (v_string ) >= LooseVersion ('2.1.0.post789' ):
58
- self ._version = '2.2.0'
59
- else :
60
- self ._version = '.' .join (v_string .split ('.' )[:3 ])
56
+ v_string , githash = self ._version .split ('-' )
61
57
62
- return self ._version
58
+ # 2.2.0-equivalent version string
59
+ if 'post' in v_string and LooseVersion (v_string ) >= LooseVersion ('2.1.0.post789' ):
60
+ return '2.2.0'
61
+ else :
62
+ return '.' .join (v_string .split ('.' )[:3 ])
63
63
64
64
65
65
class ANTSCommandInputSpec (CommandLineInputSpec ):
You can’t perform that action at this time.
0 commit comments