Skip to content
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

use checkMCR.sh to determine if we have the correct MCR for FreeSurfer #2962

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
8 changes: 7 additions & 1 deletion easybuild/easyblocks/f/freesurfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@

import os

from distutils.version import LooseVersion

from easybuild.easyblocks.generic.tarball import Tarball
from easybuild.framework.easyconfig import MANDATORY
from easybuild.tools.filetools import write_file
Expand Down Expand Up @@ -92,4 +94,8 @@ def sanity_check_step(self):
'dirs': ['bin', 'lib', 'mni'],
}

super(EB_FreeSurfer, self).sanity_check_step(custom_paths=custom_paths)
custom_commands = []
if LooseVersion(self.version) >= LooseVersion("7.2"):
custom_commands.append('checkMCR.sh')

super(EB_FreeSurfer, self).sanity_check_step(custom_paths=custom_paths, custom_commands=custom_commands)
Loading