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

fix cancelled download bug #344

Merged
merged 8 commits into from
Dec 12, 2020
Merged

fix cancelled download bug #344

merged 8 commits into from
Dec 12, 2020

Conversation

PRamoneda
Copy link
Collaborator

@PRamoneda PRamoneda commented Nov 24, 2020

As I said on #326
When it is downloading a remote zip if I cancel it (^C) (or internet breaks down) and I come back to download the remote a sha related error shows up :S. This is because the corrupt .zip (half-downloaded) is not removed

@codecov
Copy link

codecov bot commented Nov 24, 2020

Codecov Report

Merging #344 (d197e40) into master (881f30a) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #344   +/-   ##
=======================================
  Coverage   98.09%   98.09%           
=======================================
  Files          30       30           
  Lines        2934     2934           
=======================================
  Hits         2878     2878           
  Misses         56       56           

Copy link
Collaborator

@nkundiushuti nkundiushuti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so when you do download with force_overwrite=True the download works. this solution is for the default case force_overwrite=False when the download is failing for some reason.

could we also display a message when the checksum for the archives do not match so that the users try to download the dataset with force_overwrite=True?

mirdata/download_utils.py Outdated Show resolved Hide resolved
mirdata/download_utils.py Outdated Show resolved Hide resolved
@magdalenafuentes magdalenafuentes added this to the 0.3 milestone Nov 30, 2020
@PRamoneda PRamoneda self-assigned this Dec 1, 2020
@PRamoneda
Copy link
Collaborator Author

ok done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants