Skip to content

Commit f95d960

Browse files
authored
fix: allow parsing freesurfer 7 version string
closes #3215
1 parent d2a48e1 commit f95d960

File tree

1 file changed

+3
-0
lines changed
  • nipype/interfaces/freesurfer

1 file changed

+3
-0
lines changed

nipype/interfaces/freesurfer/base.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ def looseversion(cls):
7676
vstr = "6.0.0-dev" + githash
7777
elif vinfo[5][0] == "v":
7878
vstr = vinfo[5][1:]
79+
elif len([1 for val in vinfo[3] if val == '.']) == 2:
80+
"version string: freesurfer-linux-centos7_x86_64-7.1.0-20200511-813297b"
81+
vstr = vinfo[3]
7982
else:
8083
raise RuntimeError("Unknown version string: " + ver)
8184
# Retain pre-6.0.0 heuristics

0 commit comments

Comments
 (0)