@@ -1353,6 +1353,22 @@ def edf2mit(record_name, pn_dir=None, delete_file=True, record_only=False):
1353
1353
"""
1354
1354
Convert EDF formatted files to MIT format.
1355
1355
1356
+ Many EDF files contain signals at widely varying sampling frequencies.
1357
+ `edf2mit` handles these properly, but the default behavior of most WFDB
1358
+ applications is to read such data in low-resolution mode (in which all
1359
+ signals are resampled at the lowest sampling frequency used for any signal
1360
+ in the record). This is almost certainly not what you want if, for
1361
+ example, the record contains EEG signals sampled at 200 Hz and body
1362
+ temperature sampled at 1 Hz; by default, applications such as `rdsamp`
1363
+ will resample the EEGs (and any other signals in the record) at 1 Hz. To
1364
+ avoid this behavior, you can set `smooth_frames` to False (high resolution)
1365
+ provided by `rdrecord` and a few other WFDB applications.
1366
+
1367
+ Note that applications built using version 3.1.0 and later versions of
1368
+ the WFDB-Python library can read EDF files directly, so that the conversion
1369
+ performed by `edf2mit` is no longer necessary. However, one can still use
1370
+ this function to produce WFDB-compatible files from EDF files if desired.
1371
+
1356
1372
Parameters
1357
1373
----------
1358
1374
record_name : str
@@ -1498,11 +1514,11 @@ def edf2mit(record_name, pn_dir=None, delete_file=True, record_only=False):
1498
1514
pass
1499
1515
1500
1516
1501
- def wfdb2edf (record_name , pn_dir = None , sampfrom = 0 , sampto = None , channels = None ,
1517
+ def mit2edf (record_name , pn_dir = None , sampfrom = 0 , sampto = None , channels = None ,
1502
1518
output_filename = '' , edf_plus = False ):
1503
1519
"""
1504
1520
These programs convert EDF (European Data Format) files into
1505
- WFDB-compatible files (as used in PhysioBank ) and vice versa. European
1521
+ WFDB-compatible files (as used in PhysioNet ) and vice versa. European
1506
1522
Data Format (EDF) was originally designed for storage of polysomnograms.
1507
1523
1508
1524
Note that WFDB format does not include a standard way to specify the
@@ -1511,22 +1527,6 @@ def wfdb2edf(record_name, pn_dir=None, sampfrom=0, sampto=None, channels=None,
1511
1527
standard signal and unit names specified for EDF is permitted but not
1512
1528
enforced by `mit2edf`.
1513
1529
1514
- Many EDF files contain signals at widely varying sampling frequencies.
1515
- `edf2mit` handles these properly, but the default behavior of most WFDB
1516
- applications is to read such data in low-resolution mode (in which all
1517
- signals are resampled at the lowest sampling frequency used for any signal
1518
- in the record). This is almost certainly not what you want if, for
1519
- example, the record contains EEG signals sampled at 200 Hz and body
1520
- temperature sampled at 1 Hz; by default, applications such as `rdsamp`
1521
- will resample the EEGs (and any other signals in the record) at 1 Hz. To
1522
- avoid this behavior, you can set `smooth_frames` to False (high resolution)
1523
- provided by `rdrecord` and a few other WFDB applications.
1524
-
1525
- Note that applications built using version 3.1.0 and later versions of
1526
- the WFDB-Python library can read EDF files directly, so that the conversion
1527
- performed by `edf2mit` is no longer necessary. However, one can still use
1528
- this function to produce WFDB-compatible files from EDF files if desired.
1529
-
1530
1530
Parameters
1531
1531
----------
1532
1532
record_name : str
@@ -1602,7 +1602,7 @@ def wfdb2edf(record_name, pn_dir=None, sampfrom=0, sampto=None, channels=None,
1602
1602
1603
1603
Examples
1604
1604
--------
1605
- >>> wfdb.wfdb2edf ('100', pn_dir='pwave')
1605
+ >>> wfdb.mit2edf ('100', pn_dir='pwave')
1606
1606
1607
1607
The output file name is '100.edf'
1608
1608
0 commit comments