Skip to content

fix: allow parsing freesurfer 7 version string #3216

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 19, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions nipype/interfaces/freesurfer/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ def looseversion(cls):
vstr = "6.0.0-dev" + githash
elif vinfo[5][0] == "v":
vstr = vinfo[5][1:]
elif len([1 for val in vinfo[3] if val == '.']) == 2:
"version string: freesurfer-linux-centos7_x86_64-7.1.0-20200511-813297b"
vstr = vinfo[3]
else:
raise RuntimeError("Unknown version string: " + ver)
# Retain pre-6.0.0 heuristics
Expand Down