{"action":"created","issue":{"url":"https://api.github.com/repos/mne-tools/mne-python/issues/2706","labels_url":"https://api.github.com/repos/mne-tools/mne-python/issues/2706/labels{/name}","comments_url":"https://api.github.com/repos/mne-tools/mne-python/issues/2706/comments","events_url":"https://api.github.com/repos/mne-tools/mne-python/issues/2706/events","html_url":"https://github.com/mne-tools/mne-python/issues/2706","id":122266799,"number":2706,"title":"BUG: partially downloaded dataset","user":{"login":"jasmainak","id":15852194,"avatar_url":"https://avatars.githubusercontent.com/u/15852194?v=3","gravatar_id":"","url":"https://api.github.com/users/jasmainak","html_url":"https://github.com/jasmainak","followers_url":"https://api.github.com/users/jasmainak/followers","following_url":"https://api.github.com/users/jasmainak/following{/other_user}","gists_url":"https://api.github.com/users/jasmainak/gists{/gist_id}","starred_url":"https://api.github.com/users/jasmainak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasmainak/subscriptions","organizations_url":"https://api.github.com/users/jasmainak/orgs","repos_url":"https://api.github.com/users/jasmainak/repos","events_url":"https://api.github.com/users/jasmainak/events{/privacy}","received_events_url":"https://api.github.com/users/jasmainak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-15T12:57:09Z","updated_at":"2015-12-15T14:02:16Z","closed_at":null,"body":"I was trying to update the testing dataset but I already had a partially downloaded zip file in my mne/examples/ directory. This made the downloading hang. I tried\r\n\r\n```py\r\nfrom mne.datasets import testing\r\ntesting.data_path(force_update=True)\r\n```\r\n\r\nI am not sure if this happens with other datasets. And also I'm not sure if there's an easy way to replicate this because you would need to have a partially downloaded copy of the old dataset (before it was updated). "},"comment":{"url":"https://api.github.com/repos/mne-tools/mne-python/issues/comments/164773707","html_url":"https://github.com/mne-tools/mne-python/issues/2706#issuecomment-164773707","issue_url":"https://api.github.com/repos/mne-tools/mne-python/issues/2706","id":164773707,"user":{"login":"Eric89GXL","id":2365790,"avatar_url":"https://avatars.githubusercontent.com/u/2365790?v=3","gravatar_id":"","url":"https://api.github.com/users/Eric89GXL","html_url":"https://github.com/Eric89GXL","followers_url":"https://api.github.com/users/Eric89GXL/followers","following_url":"https://api.github.com/users/Eric89GXL/following{/other_user}","gists_url":"https://api.github.com/users/Eric89GXL/gists{/gist_id}","starred_url":"https://api.github.com/users/Eric89GXL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eric89GXL/subscriptions","organizations_url":"https://api.github.com/users/Eric89GXL/orgs","repos_url":"https://api.github.com/users/Eric89GXL/repos","events_url":"https://api.github.com/users/Eric89GXL/events{/privacy}","received_events_url":"https://api.github.com/users/Eric89GXL/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T14:02:16Z","updated_at":"2015-12-15T14:02:16Z","body":"Usually partial downloads work, but for `testing` they might not since the hashes are not the same download-to-download. So one solution is to add a parameter to our dataset downloaders that says whether it can be resumed, which would be True for all datasets except the testing one."}}