1010from wfdb .io import record
1111
1212
13- # The Physionet index url
13+ # The PhysioNet index url
1414PN_INDEX_URL = 'https://physionet.org/files/'
1515PN_CONTENT_URL = 'https://physionet.org/content/'
1616
1717class Config (object ):
1818 """
19- General class structure for the Physionet database.
19+ General class structure for the PhysioNet database.
2020
2121 Attributes
2222 ----------
@@ -25,7 +25,7 @@ class Config(object):
2525 """
2626 pass
2727
28- # The configuration database index url. Uses Physionet index by default.
28+ # The configuration database index url. Uses PhysioNet index by default.
2929config = Config ()
3030config .db_index_url = PN_INDEX_URL
3131
@@ -39,7 +39,7 @@ def set_db_index_url(db_index_url=PN_INDEX_URL):
3939 ----------
4040 db_index_url : str, optional
4141 The desired new database index url. Leave as default to reset
42- to the Physionet index url.
42+ to the PhysioNet index url.
4343
4444 Returns
4545 -------
@@ -94,7 +94,7 @@ def _stream_header(file_name, pn_dir):
9494 file_name : str
9595 The name of the headerr file to be read.
9696 pn_dir : str
97- The Physionet database directory from which to find the
97+ The PhysioNet database directory from which to find the
9898 required header file. eg. For file '100.hea' in
9999 'http://physionet.org/content/mitdb', pn_dir='mitdb'.
100100
@@ -148,7 +148,7 @@ def _stream_dat(file_name, pn_dir, byte_count, start_byte, dtype):
148148 file_name : str
149149 The name of the dat file to be read.
150150 pn_dir : str
151- The Physionet directory where the dat file is located.
151+ The PhysioNet directory where the dat file is located.
152152 byte_count : int
153153 The number of bytes to be read.
154154 start_byte : int
@@ -196,7 +196,7 @@ def _stream_annotation(file_name, pn_dir):
196196 file_name : str
197197 The name of the annotation file to be read.
198198 pn_dir : str
199- The Physionet directory where the annotation file is located.
199+ The PhysioNet directory where the annotation file is located.
200200
201201 Returns
202202 -------
@@ -220,7 +220,7 @@ def _stream_annotation(file_name, pn_dir):
220220
221221def get_dbs ():
222222 """
223- Get a list of all the Physionet databases available.
223+ Get a list of all the PhysioNet databases available.
224224
225225 Parameters
226226 ----------
@@ -251,7 +251,7 @@ def get_dbs():
251251 return dbs
252252
253253
254- # ---- Helper functions for downloading Physionet files ------- #
254+ # ---- Helper functions for downloading PhysioNet files ------- #
255255
256256
257257def get_record_list (db_dir , records = 'all' ):
@@ -277,7 +277,7 @@ def get_record_list(db_dir, records='all'):
277277 >>> wfdb.get_record_list('mitdb')
278278
279279 """
280- # Full url Physionet database
280+ # Full url PhysioNet database
281281 if os .sep not in db_dir :
282282 db_url = posixpath .join (config .db_index_url , db_dir , record .get_version (db_dir ))
283283 else :
@@ -321,7 +321,7 @@ def get_annotators(db_dir, annotators):
321321 >>> wfdb.get_annotators('mitdb')
322322
323323 """
324- # Full url Physionet database
324+ # Full url PhysioNet database
325325 db_url = posixpath .join (config .db_index_url , db_dir )
326326
327327 if annotators is not None :
@@ -364,7 +364,7 @@ def make_local_dirs(dl_dir, dl_inputs, keep_subdirs):
364364 The desired input names for creating the directories.
365365 keep_subdirs : bool
366366 Whether to keep the relative subdirectories of downloaded files as they
367- are organized in Physionet (True), or to download all files into the
367+ are organized in PhysioNet (True), or to download all files into the
368368 same base directory (False).
369369
370370 Returns
@@ -475,12 +475,12 @@ def dl_full_file(url, save_file_name):
475475
476476def dl_files (db , dl_dir , files , keep_subdirs = True , overwrite = False ):
477477 """
478- Download specified files from a Physionet database.
478+ Download specified files from a PhysioNet database.
479479
480480 Parameters
481481 ----------
482482 db : str
483- The Physionet database directory to download. eg. For database:
483+ The PhysioNet database directory to download. eg. For database:
484484 'http://physionet.org/content/mitdb', db='mitdb'.
485485 dl_dir : str
486486 The full local directory path in which to download the files.
@@ -489,7 +489,7 @@ def dl_files(db, dl_dir, files, keep_subdirs=True, overwrite=False):
489489 database base directory.
490490 keep_subdirs : bool, optional
491491 Whether to keep the relative subdirectories of downloaded files as they
492- are organized in Physionet (True), or to download all files into the
492+ are organized in PhysioNet (True), or to download all files into the
493493 same base directory (False).
494494 overwrite : bool, optional
495495 If True, all files will be redownloaded regardless. If False, existing
@@ -511,7 +511,7 @@ def dl_files(db, dl_dir, files, keep_subdirs=True, overwrite=False):
511511 'data/001a.dat'])
512512
513513 """
514- # Full url Physionet database
514+ # Full url PhysioNet database
515515 db_dir = posixpath .join (db , record .get_version (db ))
516516 db_url = posixpath .join (PN_CONTENT_URL , db_dir ) + os .sep
517517
0 commit comments