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

Download DB on ltafdb directs to a 404. #252

Closed
khtad opened this issue Sep 2, 2020 · 1 comment
Closed

Download DB on ltafdb directs to a 404. #252

khtad opened this issue Sep 2, 2020 · 1 comment

Comments

@khtad
Copy link

khtad commented Sep 2, 2020

This code:

import wfdb
import os

def main():
db = 'ltafdb'
wfdb.dl_database(db_dir=db,
dl_dir=os.getcwd())

if name == 'main':
main()

returns the following error:

Traceback (most recent call last):
File "C:/wfdbAFIB/downloadDB.py", line 12, in
main()
File "C:/wfdbAFIB/downloadDB.py", line 8, in main
dl_dir=os.getcwd())
File "C:\Users\micha\Anaconda3\lib\site-packages\wfdb\io\record.py", line 2253, in dl_database
r.raise_for_status()
File "C:\Users\micha\Anaconda3\lib\site-packages\requests\models.py", line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://physionet.org/content/ltafdb/1.0.0%5C/

The URL that the subroutine is pointing at is indeed 404 because the DB has been moved to https://archive.physionet.org/physiobank/database/ltafdb/.

@Lucas-Mc
Copy link
Collaborator

Lucas-Mc commented Sep 2, 2020

Hey @khtad, the database does exist on the existing PhysioNet site here: https://physionet.org/content/ltafdb/1.0.0/. The issue you are experiencing is the addition of the %5C in the URL for Windows machines due to a bug in the code. This issue was fixed on #251 and your issue should be resolved with an update to the latest code. Thanks!

@Lucas-Mc Lucas-Mc closed this as completed Sep 2, 2020
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

2 participants