forked from Inria-Empenn/narps_open_pipelines
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
60 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/python | ||
# coding: utf-8 | ||
|
||
""" This module allows to compare pipeline output with original team results """ | ||
|
||
import sys | ||
from argparse import ArgumentParser | ||
|
||
import pytest | ||
|
||
def main(): | ||
""" Entry-point for the command line tool narps_open_tester """ | ||
|
||
# Parse arguments | ||
parser = ArgumentParser(description='Test the pipelines from NARPS.') | ||
parser.add_argument('-t', '--team', type=str, required=True, | ||
help='the team ID') | ||
arguments = parser.parse_args() | ||
|
||
sys.exit(pytest.main([ | ||
'-s', | ||
'-q', | ||
'-x', | ||
f'tests/pipelines/test_team_{arguments.team}.py', | ||
'-m', | ||
'pipeline_test'])) | ||
|
||
if __name__ == '__main__': | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters