Skip to content

Commit

Permalink
always get test data from v2.0
Browse files Browse the repository at this point in the history
we have been providing the same test data for the last couple of releases
so no need to spend time uploading test data with each release for the forseeable future
rather download from v2.0
  • Loading branch information
tashrifbillah committed Jan 22, 2021
1 parent f9eddca commit 678f590
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/tests/download_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ def main():

chdir(pjoin(LIBDIR, 'tests'))
if not isfile(test_data):
# we have been providing the same test data for the last couple of releases
# so no need to spend time uploading test data with each release for the forseeable future
# rather download from v2.0
__version__=2.0
check_call(['wget', f'https://github.com/pnlbwh/Harmonization-Python/releases/download/v{__version__}/{test_data}'])
check_call(' '.join(['tar', '-xzvf', f'{test_data}']), shell=True)

Expand Down
4 changes: 4 additions & 0 deletions lib/tests/pipeline_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ __version__=`echo $v | xargs`
test_data=connectom_prisma # change this value if test data name is changed
if [ ! -f ${test_data}.zip ]
then
# we have been providing the same test data for the last couple of releases
# so no need to spend time uploading test data with each release for the forseeable future
# rather download from v2.0
__version__=2.0
wget https://github.com/pnlbwh/dMRIharmonization/releases/download/v${__version__}/${test_data}.zip
fi

Expand Down

0 comments on commit 678f590

Please sign in to comment.