Skip to content

Commit fa2f36c

Browse files
authored
Merge pull request #251 from MIT-LCP/fix_download_247
Fixes erroneous URL #247
2 parents 517d708 + 77a8b35 commit fa2f36c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

wfdb/io/download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ def dl_files(db, dl_dir, files, keep_subdirs=True, overwrite=False):
513513
"""
514514
# Full url PhysioNet database
515515
db_dir = posixpath.join(db, record.get_version(db))
516-
db_url = posixpath.join(PN_CONTENT_URL, db_dir) + os.sep
516+
db_url = posixpath.join(PN_CONTENT_URL, db_dir) + '/'
517517

518518
# Check if the database is valid
519519
response = requests.get(db_url)

wfdb/io/record.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3381,7 +3381,7 @@ def dl_database(db_dir, dl_dir, records='all', annotators='all',
33813381
db_dir = posixpath.join(dir_list[0], get_version(dir_list[0]), *dir_list[1:])
33823382
else:
33833383
db_dir = posixpath.join(db_dir, get_version(db_dir))
3384-
db_url = posixpath.join(download.PN_CONTENT_URL, db_dir) + os.sep
3384+
db_url = posixpath.join(download.PN_CONTENT_URL, db_dir) + '/'
33853385
# Check if the database is valid
33863386
r = requests.get(db_url)
33873387
r.raise_for_status()

0 commit comments

Comments
 (0)