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
Changed the algorithm to fetch the download filename #1146
Conversation
Replace the regex with the parse_header function. Also removed the old download function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to have an output when downloading a dataset just to confirm the download has started. For example: Downloading sct_example_data ...
scripts/sct_download_data.py
Outdated
|
||
printv('Copy binaries to %s\n' % dest_folder, verbose) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some of the data downloadable by sct_download_data
are not binaries (for ex PAM50 and MNI-Poly-AMU are templates, sct_example_data and sct_testing_data are example/testing datasets, etc)
Maybe just print Copy files to xx
or Copy data to xx
@peristeri: in case of internet glitch the previous function could handle that-- is it still the case with your modification? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please see my comment about internet glitch
@jcohenadad if you are refering to retries on failed attempts? |
Added additional redundancy by retrying download if there's a server or connection error.
yes, retry if connection pb |
Replace the regex with the parse_header function. Also removed the old
download function.
Fixes #1144