Skip to content

wfdb.dldatabase 'challenge/2018/training' fails to download #114

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

Closed
ghost opened this issue Mar 26, 2018 · 0 comments
Closed

wfdb.dldatabase 'challenge/2018/training' fails to download #114

ghost opened this issue Mar 26, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 26, 2018

wfdb.dldatabase('challenge/2018/training', 'folder')
~/anaconda3/lib/python3.6/site-packages/wfdb/readwrite/records.py in dldatabase(pbdb, dlbasedir, records, annotators, keepsubdirs, overwrite)
1275 allfiles.append(rec+'.hea')
1276 dirname, baserecname = os.path.split(rec)
-> 1277 record = rdheader(baserecname, pbdir = posixpath.join(pbdb, dirname))
1278
1279 # Single segment record

~/anaconda3/lib/python3.6/site-packages/wfdb/readwrite/records.py in rdheader(recordname, pbdir, rdsegments)
929
930 # Read the header file. Separate comment and non-comment lines
--> 931 headerlines, commentlines = _headers.getheaderlines(recordname, pbdir)
932
933 # Get fields from record line

~/anaconda3/lib/python3.6/site-packages/wfdb/readwrite/_headers.py in getheaderlines(recordname, pbdir)
456 # Read online header file
457 else:
--> 458 headerlines, commentlines = downloads.streamheader(recordname, pbdir)
459
460 return headerlines, commentlines

~/anaconda3/lib/python3.6/site-packages/wfdb/readwrite/downloads.py in streamheader(recordname, pbdir)
13
14 # Raise HTTPError if invalid url
---> 15 r.raise_for_status()
16
17 # Get each line as a string

~/anaconda3/lib/python3.6/site-packages/requests/models.py in raise_for_status(self)
926
927 if http_error_msg:
--> 928 raise HTTPError(http_error_msg, response=self)
929
930 def close(self):

HTTPError: 404 Client Error: Not Found for url: http://physionet.org/physiobank/database/challenge/2018/training/tr03-0005/.hea

@cx1111 cx1111 closed this as completed in 98dd2f7 Apr 6, 2018
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

No branches or pull requests

0 participants