wfdb 4.3.0__tar.gz → 4.3.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. {wfdb-4.3.0 → wfdb-4.3.1}/.github/workflows/docs.yml +1 -1
  2. wfdb-4.3.1/.github/workflows/style.yml +21 -0
  3. {wfdb-4.3.0 → wfdb-4.3.1}/.github/workflows/test.yml +4 -5
  4. {wfdb-4.3.0 → wfdb-4.3.1}/PKG-INFO +1 -1
  5. {wfdb-4.3.0 → wfdb-4.3.1}/docs/changes.rst +15 -0
  6. {wfdb-4.3.0 → wfdb-4.3.1}/docs/requirements.txt +1 -0
  7. {wfdb-4.3.0 → wfdb-4.3.1}/wfdb/io/_coreio.py +0 -1
  8. {wfdb-4.3.0 → wfdb-4.3.1}/wfdb/io/_header.py +23 -15
  9. {wfdb-4.3.0 → wfdb-4.3.1}/wfdb/io/_signal.py +1 -1
  10. {wfdb-4.3.0 → wfdb-4.3.1}/wfdb/io/_url.py +2 -3
  11. {wfdb-4.3.0 → wfdb-4.3.1}/wfdb/io/annotation.py +11 -6
  12. {wfdb-4.3.0 → wfdb-4.3.1}/wfdb/io/convert/csv.py +4 -8
  13. {wfdb-4.3.0 → wfdb-4.3.1}/wfdb/io/convert/edf.py +2 -2
  14. {wfdb-4.3.0 → wfdb-4.3.1}/wfdb/io/download.py +0 -1
  15. {wfdb-4.3.0 → wfdb-4.3.1}/wfdb/io/record.py +10 -11
  16. {wfdb-4.3.0 → wfdb-4.3.1}/wfdb/plot/plot.py +1 -0
  17. wfdb-4.3.1/wfdb/version.py +1 -0
  18. wfdb-4.3.0/activate +0 -66
  19. wfdb-4.3.0/ecg-record.dat +0 -0
  20. wfdb-4.3.0/ecg-record.hea +0 -3
  21. wfdb-4.3.0/test01_00s.dat +0 -0
  22. wfdb-4.3.0/test01_00s_framex.hea +0 -6
  23. wfdb-4.3.0/tmp_dl_dir/0001.atr +0 -0
  24. wfdb-4.3.0/tmp_dl_dir/0001.dat +0 -0
  25. wfdb-4.3.0/tmp_dl_dir/0001.hea +0 -3
  26. wfdb-4.3.0/tmp_dl_dir/0201.atr +0 -0
  27. wfdb-4.3.0/tmp_dl_dir/0201.dat +0 -0
  28. wfdb-4.3.0/tmp_dl_dir/0201.hea +0 -3
  29. wfdb-4.3.0/tmp_dl_dir/STAFF-Studies-bibliography-2016.pdf +0 -0
  30. wfdb-4.3.0/tmp_dl_dir/data/001a.dat +0 -0
  31. wfdb-4.3.0/tmp_dl_dir/data/001a.hea +0 -12
  32. wfdb-4.3.0/tmp_dl_dir/data/001b.dat +0 -0
  33. wfdb-4.3.0/tmp_dl_dir/data/001b.hea +0 -12
  34. wfdb-4.3.0/wfdb/version.py +0 -1
  35. {wfdb-4.3.0 → wfdb-4.3.1}/.gitattributes +0 -0
  36. {wfdb-4.3.0 → wfdb-4.3.1}/.gitignore +0 -0
  37. {wfdb-4.3.0 → wfdb-4.3.1}/.readthedocs.yml +0 -0
  38. {wfdb-4.3.0 → wfdb-4.3.1}/DEVELOPING.md +0 -0
  39. {wfdb-4.3.0 → wfdb-4.3.1}/LICENSE +0 -0
  40. {wfdb-4.3.0 → wfdb-4.3.1}/README.md +0 -0
  41. {wfdb-4.3.0 → wfdb-4.3.1}/docs/Makefile +0 -0
  42. {wfdb-4.3.0 → wfdb-4.3.1}/docs/_static/.gitkeep +0 -0
  43. {wfdb-4.3.0 → wfdb-4.3.1}/docs/_templates/.gitkeep +0 -0
  44. {wfdb-4.3.0 → wfdb-4.3.1}/docs/conf.py +0 -0
  45. {wfdb-4.3.0 → wfdb-4.3.1}/docs/convert.rst +0 -0
  46. {wfdb-4.3.0 → wfdb-4.3.1}/docs/index.rst +0 -0
  47. {wfdb-4.3.0 → wfdb-4.3.1}/docs/installation.rst +0 -0
  48. {wfdb-4.3.0 → wfdb-4.3.1}/docs/io.rst +0 -0
  49. {wfdb-4.3.0 → wfdb-4.3.1}/docs/plot.rst +0 -0
  50. {wfdb-4.3.0 → wfdb-4.3.1}/docs/processing.rst +0 -0
  51. {wfdb-4.3.0 → wfdb-4.3.1}/docs/wfdb-specifications.rst +0 -0
  52. {wfdb-4.3.0 → wfdb-4.3.1}/docs/wfdb.rst +0 -0
  53. {wfdb-4.3.0 → wfdb-4.3.1}/pylintrc +0 -0
  54. {wfdb-4.3.0 → wfdb-4.3.1}/pyproject.toml +0 -0
  55. {wfdb-4.3.0 → wfdb-4.3.1}/wfdb/__init__.py +0 -0
  56. {wfdb-4.3.0 → wfdb-4.3.1}/wfdb/io/__init__.py +0 -0
  57. {wfdb-4.3.0 → wfdb-4.3.1}/wfdb/io/convert/__init__.py +0 -0
  58. {wfdb-4.3.0 → wfdb-4.3.1}/wfdb/io/convert/matlab.py +0 -0
  59. {wfdb-4.3.0 → wfdb-4.3.1}/wfdb/io/convert/tff.py +0 -0
  60. {wfdb-4.3.0 → wfdb-4.3.1}/wfdb/io/convert/wav.py +0 -0
  61. {wfdb-4.3.0 → wfdb-4.3.1}/wfdb/io/datasource.py +0 -0
  62. {wfdb-4.3.0 → wfdb-4.3.1}/wfdb/io/header.py +0 -0
  63. {wfdb-4.3.0 → wfdb-4.3.1}/wfdb/io/util.py +0 -0
  64. {wfdb-4.3.0 → wfdb-4.3.1}/wfdb/plot/__init__.py +0 -0
  65. {wfdb-4.3.0 → wfdb-4.3.1}/wfdb/processing/__init__.py +0 -0
  66. {wfdb-4.3.0 → wfdb-4.3.1}/wfdb/processing/basic.py +0 -0
  67. {wfdb-4.3.0 → wfdb-4.3.1}/wfdb/processing/evaluate.py +0 -0
  68. {wfdb-4.3.0 → wfdb-4.3.1}/wfdb/processing/filter.py +0 -0
  69. {wfdb-4.3.0 → wfdb-4.3.1}/wfdb/processing/hr.py +0 -0
  70. {wfdb-4.3.0 → wfdb-4.3.1}/wfdb/processing/peaks.py +0 -0
  71. {wfdb-4.3.0 → wfdb-4.3.1}/wfdb/processing/qrs.py +0 -0
@@ -10,7 +10,7 @@ on:
10
10
 
11
11
  jobs:
12
12
  docs:
13
- runs-on: ubuntu-20.04
13
+ runs-on: ubuntu-22.04
14
14
  steps:
15
15
  - uses: actions/checkout@v3
16
16
  - name: Install dependencies
@@ -0,0 +1,21 @@
1
+ name: Style Check
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+ branches:
9
+ - main
10
+
11
+ jobs:
12
+ style:
13
+ name: Style Check
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ - uses: astral-sh/setup-uv@v3
18
+ - name: Install Python
19
+ run: uv python install 3.11
20
+ - name: Check style
21
+ run: uv run --extra dev black --check --diff .
@@ -8,9 +8,6 @@ on:
8
8
  branches:
9
9
  - main
10
10
 
11
- env:
12
- NPY_PROMOTION_STATE: weak_and_warn
13
-
14
11
  jobs:
15
12
  test:
16
13
  name: Python ${{ matrix.python-version }} / ${{ matrix.os }} / ${{ matrix.numpy }}
@@ -34,14 +31,16 @@ jobs:
34
31
  if: startsWith(matrix.os, 'ubuntu')
35
32
  run: sudo apt-get install -y libsndfile1
36
33
  - name: Run tests
34
+ env:
35
+ MPLBACKEND: Agg
37
36
  run: uv run --with ${{ matrix.numpy }} --extra dev pytest
38
- - name: Check style
39
- run: uv run --extra dev black --check --diff .
40
37
 
41
38
  test-deb11-i386:
42
39
  name: Python 3.7 on Debian 11 i386
43
40
  runs-on: ubuntu-latest
44
41
  container: i386/debian:11
42
+ env:
43
+ NPY_PROMOTION_STATE: weak_and_warn
45
44
  steps:
46
45
  - name: Install dependencies
47
46
  run: |
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wfdb
3
- Version: 4.3.0
3
+ Version: 4.3.1
4
4
  Summary: The WFDB Python package: tools for reading, writing, and processing physiologic signals and annotations.
5
5
  Project-URL: homepage, https://github.com/MIT-LCP/wfdb-python/
6
6
  Project-URL: repository, https://github.com/MIT-LCP/wfdb-python/
@@ -5,6 +5,21 @@ This page lists recent changes in the `wfdb` package (since version 4.0.0) that
5
5
 
6
6
  .. _development repository: https://github.com/MIT-LCP/wfdb-python
7
7
 
8
+ Version 4.3.1 (Feb 2026)
9
+ -----------------------------
10
+
11
+ **Add fix for Pandas 3.0**
12
+ In Pandas 3.0, DataFrame.set_index() no longer accepts a raw numpy array as the keys argument. Adds fix by wrapping the index array in pd.Index().
13
+
14
+ **Fix ADC formula**
15
+ Fixes [formula for ADC gain](https://github.com/MIT-LCP/wfdb-python/pull/551).
16
+
17
+ **Allow multifrequency signals to be written with expanded argument**
18
+ Allow [expanded parameter in MultiRecord.wrsamp](https://github.com/MIT-LCP/wfdb-python/pull/555).
19
+
20
+ **Date validation when saving multi-segment records**
21
+ Adds validation check for date and time fields in headers when saving multi-segment records.
22
+
8
23
  Version 4.3.0 (Apr 2025)
9
24
  -----------------------------
10
25
 
@@ -2,3 +2,4 @@ numpydoc==1.7.0
2
2
  sphinx==7.0.0
3
3
  sphinx_rtd_theme==3.0.0
4
4
  readthedocs-sphinx-search==0.3.2
5
+ fsspec>=2023.10.0
@@ -5,7 +5,6 @@ import fsspec
5
5
  from wfdb.io import _url
6
6
  from wfdb.io.download import config
7
7
 
8
-
9
8
  # Cloud protocols
10
9
  CLOUD_PROTOCOLS = ["az://", "azureml://", "s3://", "gs://"]
11
10
 
@@ -1,4 +1,5 @@
1
1
  import datetime
2
+ from dateutil import parser
2
3
  from typing import Any, Dict, List, Optional, Sequence, Tuple
3
4
 
4
5
  import numpy as np
@@ -236,6 +237,24 @@ class BaseHeaderMixin(object):
236
237
 
237
238
  return write_fields
238
239
 
240
+ def preprocess_header(self, field):
241
+ """
242
+ Get and process the fields as needed before writing
243
+ """
244
+ original_field = getattr(self, field)
245
+ string_field = str(original_field)
246
+
247
+ # Certain fields need extra processing
248
+ if field == "fs" and isinstance(self.fs, float):
249
+ if round(self.fs, 8) == float(int(self.fs)):
250
+ string_field = str(int(self.fs))
251
+ elif field == "base_time" and "." in string_field:
252
+ string_field = string_field.rstrip("0")
253
+ elif field == "base_date":
254
+ string_field = original_field.strftime("%d/%m/%Y")
255
+
256
+ return string_field
257
+
239
258
 
240
259
  class HeaderMixin(BaseHeaderMixin):
241
260
  """
@@ -534,19 +553,7 @@ class HeaderMixin(BaseHeaderMixin):
534
553
  for field in RECORD_SPECS.index:
535
554
  # If the field is being used, add it with its delimiter
536
555
  if field in rec_write_fields:
537
- string_field = str(getattr(self, field))
538
-
539
- # Certain fields need extra processing
540
- if field == "fs" and isinstance(self.fs, float):
541
- if round(self.fs, 8) == float(int(self.fs)):
542
- string_field = str(int(self.fs))
543
- elif field == "base_time" and "." in string_field:
544
- string_field = string_field.rstrip("0")
545
- elif field == "base_date":
546
- string_field = "/".join(
547
- (string_field[8:], string_field[5:7], string_field[:4])
548
- )
549
-
556
+ string_field = self.preprocess_header(field)
550
557
  record_line += (
551
558
  RECORD_SPECS.loc[field, "delimiter"] + string_field
552
559
  )
@@ -756,8 +763,9 @@ class MultiHeaderMixin(BaseHeaderMixin):
756
763
  for field in RECORD_SPECS.index:
757
764
  # If the field is being used, add it with its delimiter
758
765
  if field in write_fields:
759
- record_line += RECORD_SPECS.loc[field, "delimiter"] + str(
760
- getattr(self, field)
766
+ string_field = self.preprocess_header(field)
767
+ record_line += (
768
+ RECORD_SPECS.loc[field, "delimiter"] + string_field
761
769
  )
762
770
 
763
771
  header_lines = [record_line]
@@ -792,7 +792,7 @@ class SignalMixin(object):
792
792
  if baseline > MAX_I32:
793
793
  # pmin maps to dmin, baseline maps to 2**31 - 1
794
794
  # pmax will map to a lower value than before
795
- adc_gain = (MAX_I32) - dmin / abs(pmin)
795
+ adc_gain = (MAX_I32 - dmin) / abs(pmin)
796
796
  baseline = MAX_I32
797
797
  # This may happen if pmin > 0
798
798
  elif baseline < MIN_I32:
@@ -9,7 +9,6 @@ import urllib.request
9
9
 
10
10
  from wfdb.version import __version__
11
11
 
12
-
13
12
  # Value for 'buffering' indicating that the entire file should be
14
13
  # buffered at once.
15
14
  BUFFER_WHOLE_FILE = -2
@@ -486,7 +485,7 @@ class NetFile(io.BufferedIOBase):
486
485
  if buffer_store:
487
486
  # Load data into buffer and then return a copy to the
488
487
  # caller.
489
- (start, data) = xfer.content()
488
+ start, data = xfer.content()
490
489
  self._buffer = data
491
490
  self._buffer_start = start
492
491
  self._buffer_end = start + len(data)
@@ -767,7 +766,7 @@ def openurl(
767
766
  (io.BufferedIOBase) or text file API (io.TextIOBase).
768
767
 
769
768
  """
770
- (scheme, netloc, path, _, _, _) = urllib.parse.urlparse(url)
769
+ scheme, netloc, path, _, _, _ = urllib.parse.urlparse(url)
771
770
  if scheme == "":
772
771
  raise NetFileError("no scheme specified for URL: %r" % (url,), url=url)
773
772
 
@@ -1469,7 +1469,9 @@ class Annotation(object):
1469
1469
  return
1470
1470
 
1471
1471
  label_map = self.create_label_map(inplace=False)
1472
- label_map.set_index(label_map[source_field].values, inplace=True)
1472
+ label_map.set_index(
1473
+ keys=pd.Index(label_map[source_field].values), inplace=True
1474
+ )
1473
1475
 
1474
1476
  try:
1475
1477
  target_item = label_map.loc[
@@ -1959,7 +1961,7 @@ def rdann(
1959
1961
  filebytes = load_byte_pairs(record_name, extension, pn_dir)
1960
1962
 
1961
1963
  # Get WFDB annotation fields from the file bytes
1962
- (sample, label_store, subtype, chan, num, aux_note) = proc_ann_bytes(
1964
+ sample, label_store, subtype, chan, num, aux_note = proc_ann_bytes(
1963
1965
  filebytes, sampto
1964
1966
  )
1965
1967
 
@@ -1970,17 +1972,17 @@ def rdann(
1970
1972
  )
1971
1973
 
1972
1974
  # Try to extract information describing the annotation file
1973
- (fs, custom_labels) = interpret_defintion_annotations(
1975
+ fs, custom_labels = interpret_defintion_annotations(
1974
1976
  potential_definition_inds, aux_note
1975
1977
  )
1976
1978
 
1977
1979
  # Remove annotations that do not store actual sample and label information
1978
- (sample, label_store, subtype, chan, num, aux_note) = rm_empty_indices(
1980
+ sample, label_store, subtype, chan, num, aux_note = rm_empty_indices(
1979
1981
  rm_inds, sample, label_store, subtype, chan, num, aux_note
1980
1982
  )
1981
1983
 
1982
1984
  # Convert lists to numpy arrays dtype='int'
1983
- (label_store, subtype, chan, num) = lists_to_int_arrays(
1985
+ label_store, subtype, chan, num = lists_to_int_arrays(
1984
1986
  label_store, subtype, chan, num
1985
1987
  )
1986
1988
 
@@ -3057,7 +3059,10 @@ ann_class_table = pd.DataFrame(
3057
3059
  "human_reviewed": [ac.human_reviewed for ac in ann_classes],
3058
3060
  }
3059
3061
  )
3060
- ann_class_table.set_index(ann_class_table["extension"].values, inplace=True)
3062
+ ann_class_table.set_index(
3063
+ keys=pd.Index(ann_class_table["extension"].values),
3064
+ inplace=True,
3065
+ )
3061
3066
  ann_class_table = ann_class_table[
3062
3067
  ["extension", "description", "human_reviewed"]
3063
3068
  ]
@@ -625,20 +625,16 @@ def csv2ann(
625
625
  df_CSV.columns = ["onset", "duration", "description"]
626
626
  df_out = format_ann_from_df(df_CSV)
627
627
  else:
628
- raise Exception(
629
- """The number of columns in the CSV was not
630
- recognized."""
631
- )
628
+ raise Exception("""The number of columns in the CSV was not
629
+ recognized.""")
632
630
 
633
631
  # Remove extension from input file name
634
632
  file_name = file_name.split(".")[0]
635
633
  if time_onset:
636
634
  if not fs:
637
- raise Exception(
638
- """`fs` must be provided if `time_onset` is True
635
+ raise Exception("""`fs` must be provided if `time_onset` is True
639
636
  since it is required to convert time onsets to
640
- samples"""
641
- )
637
+ samples""")
642
638
  sample = (df_out["onset"].to_numpy() * fs).astype(np.int64)
643
639
  else:
644
640
  sample = df_out["onset"].to_numpy()
@@ -959,12 +959,12 @@ def wfdb_to_edf(
959
959
  [
960
960
  num_blocks,
961
961
  num_blocks * int(frames_per_block),
962
- num_blocks * bytes_per_block,
962
+ num_blocks * int(bytes_per_block),
963
963
  ]
964
964
  ),
965
965
  num_blocks,
966
966
  num_blocks * int(frames_per_block),
967
- num_blocks * bytes_per_block,
967
+ num_blocks * int(bytes_per_block),
968
968
  )
969
969
  )
970
970
  print(
@@ -7,7 +7,6 @@ import numpy as np
7
7
 
8
8
  from wfdb.io import _url
9
9
 
10
-
11
10
  # The PhysioNet index url
12
11
  PN_INDEX_URL = "https://physionet.org/files/"
13
12
  PN_CONTENT_URL = "https://physionet.org/content/"
@@ -16,7 +16,6 @@ from wfdb.io import header
16
16
  from wfdb.io import util
17
17
  from wfdb.io._coreio import CLOUD_PROTOCOLS
18
18
 
19
-
20
19
  # -------------- WFDB Signal Calibration and Classification ---------- #
21
20
 
22
21
 
@@ -712,11 +711,9 @@ class Record(BaseRecord, _header.HeaderMixin, _signal.SignalMixin):
712
711
  must be set, but not both. In addition, if d_signal is set, fmt, gain
713
712
  and baseline must also all be set.
714
713
  e_p_signal : ndarray, optional
715
- The expanded physical conversion of the signal. Either a 2d numpy
716
- array or a list of 1d numpy arrays.
714
+ The expanded physical conversion of the signal as a list of 1d numpy arrays.
717
715
  e_d_signal : ndarray, optional
718
- The expanded digital conversion of the signal. Either a 2d numpy
719
- array or a list of 1d numpy arrays.
716
+ The expanded digital conversion of the signal as a list of 1d numpy arrays.
720
717
  record_name : str, optional
721
718
  The name of the WFDB record to be read, without any file
722
719
  extensions. If the argument contains any path delimiter
@@ -1160,13 +1157,17 @@ class MultiRecord(BaseRecord, _header.MultiHeaderMixin):
1160
1157
  if not seg_len:
1161
1158
  self.seg_len = [segment.sig_len for segment in segments]
1162
1159
 
1163
- def wrsamp(self, write_dir=""):
1160
+ def wrsamp(self, expanded=False, write_dir=""):
1164
1161
  """
1165
1162
  Write a multi-segment header, along with headers and dat files
1166
1163
  for all segments, from this object.
1167
1164
 
1168
1165
  Parameters
1169
1166
  ----------
1167
+ expanded : bool, optional
1168
+ Whether to write each segment's expanded signal (`e_d_signal`)
1169
+ instead of the uniform signal (`d_signal`). This flag is passed
1170
+ through to each segment's `Record.wrsamp()` call.
1170
1171
  write_dir : str, optional
1171
1172
  The directory in which to write the files.
1172
1173
 
@@ -1181,7 +1182,7 @@ class MultiRecord(BaseRecord, _header.MultiHeaderMixin):
1181
1182
  # Perform record validity and cohesion checks, and write the
1182
1183
  # associated segments.
1183
1184
  for seg in self.segments:
1184
- seg.wrsamp(write_dir=write_dir)
1185
+ seg.wrsamp(expanded=expanded, write_dir=write_dir)
1185
1186
 
1186
1187
  def _check_segment_cohesion(self):
1187
1188
  """
@@ -2892,11 +2893,9 @@ def wrsamp(
2892
2893
  must be set, but not both. In addition, if d_signal is set, fmt, gain
2893
2894
  and baseline must also all be set.
2894
2895
  e_p_signal : ndarray, optional
2895
- The expanded physical conversion of the signal. Either a 2d numpy
2896
- array or a list of 1d numpy arrays.
2896
+ The expanded physical conversion of the signal as a list of 1d numpy arrays.
2897
2897
  e_d_signal : ndarray, optional
2898
- The expanded digital conversion of the signal. Either a 2d numpy
2899
- array or a list of 1d numpy arrays.
2898
+ The expanded digital conversion of the signal as a list of 1d numpy arrays.
2900
2899
  samps_per_frame : int or list of ints, optional
2901
2900
  The total number of samples per frame.
2902
2901
  fmt : list, optional
@@ -238,6 +238,7 @@ def plot_items(
238
238
 
239
239
  >>> wfdb.plot_items(signal=record.p_signal,
240
240
  ann_samp=[ann.sample, ann.sample],
241
+ fs=record.fs, sig_units=record.units,
241
242
  title='MIT-BIH Record 100', time_units='seconds',
242
243
  figsize=(10,4), ecg_grids='all')
243
244
 
@@ -0,0 +1 @@
1
+ __version__ = "4.3.1"
wfdb-4.3.0/activate DELETED
@@ -1,66 +0,0 @@
1
- # This file must be used with "source bin/activate" *from bash*
2
- # you cannot run it directly
3
-
4
- deactivate () {
5
- # reset old environment variables
6
- if [ -n "${_OLD_VIRTUAL_PATH:-}" ] ; then
7
- PATH="${_OLD_VIRTUAL_PATH:-}"
8
- export PATH
9
- unset _OLD_VIRTUAL_PATH
10
- fi
11
- if [ -n "${_OLD_VIRTUAL_PYTHONHOME:-}" ] ; then
12
- PYTHONHOME="${_OLD_VIRTUAL_PYTHONHOME:-}"
13
- export PYTHONHOME
14
- unset _OLD_VIRTUAL_PYTHONHOME
15
- fi
16
-
17
- # This should detect bash and zsh, which have a hash command that must
18
- # be called to get it to forget past commands. Without forgetting
19
- # past commands the $PATH changes we made may not be respected
20
- if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then
21
- hash -r 2> /dev/null
22
- fi
23
-
24
- if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then
25
- PS1="${_OLD_VIRTUAL_PS1:-}"
26
- export PS1
27
- unset _OLD_VIRTUAL_PS1
28
- fi
29
-
30
- unset VIRTUAL_ENV
31
- if [ ! "${1:-}" = "nondestructive" ] ; then
32
- # Self destruct!
33
- unset -f deactivate
34
- fi
35
- }
36
-
37
- # unset irrelevant variables
38
- deactivate nondestructive
39
-
40
- VIRTUAL_ENV="/Users/tompollard/projects/wfdb-python/env"
41
- export VIRTUAL_ENV
42
-
43
- _OLD_VIRTUAL_PATH="$PATH"
44
- PATH="$VIRTUAL_ENV/bin:$PATH"
45
- export PATH
46
-
47
- # unset PYTHONHOME if set
48
- # this will fail if PYTHONHOME is set to the empty string (which is bad anyway)
49
- # could use `if (set -u; : $PYTHONHOME) ;` in bash
50
- if [ -n "${PYTHONHOME:-}" ] ; then
51
- _OLD_VIRTUAL_PYTHONHOME="${PYTHONHOME:-}"
52
- unset PYTHONHOME
53
- fi
54
-
55
- if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then
56
- _OLD_VIRTUAL_PS1="${PS1:-}"
57
- PS1="(env) ${PS1:-}"
58
- export PS1
59
- fi
60
-
61
- # This should detect bash and zsh, which have a hash command that must
62
- # be called to get it to forget past commands. Without forgetting
63
- # past commands the $PATH changes we made may not be respected
64
- if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then
65
- hash -r 2> /dev/null
66
- fi
wfdb-4.3.0/ecg-record.dat DELETED
Binary file
wfdb-4.3.0/ecg-record.hea DELETED
@@ -1,3 +0,0 @@
1
- ecg-record 2 250 32500
2
- ecg-record.dat 16 18880.19925093633(-8421)/mV 16 0 -9760 34371 0 I
3
- ecg-record.dat 16 21737.727506426734(-8653)/mV 16 0 9016 32719 0 II
wfdb-4.3.0/test01_00s.dat DELETED
Binary file
@@ -1,6 +0,0 @@
1
- test01_00s_framex 3 500 4000
2
- test01_00s.dat 16x1 100.0(0)/mV 16 0 10 114 0 ECG_1
3
- test01_00s.dat 16x2 100.0(0)/mV 16 0 -8 822 0 ECG_2
4
- test01_00s.dat 16x1 100.0(0)/mV 16 0 -57 65135 0 ECG_3
5
- # <age>: 25 <sex>: M <diagnoses>: (none) <medications>: (none)
6
- # This is a copy of test01_00s with 2 samples/frame for channel 1, cutting out channel 3.
Binary file
Binary file
@@ -1,3 +0,0 @@
1
- 0001 2 250 2700000
2
- 0001.dat 212 400 12 0 -83 -16218 0 ECG
3
- 0001.dat 212 400 12 0 -21 6575 0 ECG
Binary file
Binary file
@@ -1,3 +0,0 @@
1
- 0201 2 250 525000
2
- 0201.dat 212 400 12 0 -42 23134 0 ECG
3
- 0201.dat 212 400 12 0 -33 -29466 0 ECG
Binary file
@@ -1,12 +0,0 @@
1
- 001a 9 1000 300000 20:26:00 27/09/1995
2
- 001a.dat 16+512 1600 12 0 0 0 0 V1
3
- 001a.dat 16+512 1600 12 0 0 0 0 V2
4
- 001a.dat 16+512 1600 12 0 0 0 0 V3
5
- 001a.dat 16+512 1600 12 0 0 0 0 V4
6
- 001a.dat 16+512 1600 12 0 0 0 0 V5
7
- 001a.dat 16+512 1600 12 0 0 0 0 V6
8
- 001a.dat 16+512 1600 12 0 0 0 0 I
9
- 001a.dat 16+512 1600 12 0 0 0 0 II
10
- 001a.dat 16+512 1600 12 0 0 0 0 III
11
- # Age: 52
12
- # Sex: F
Binary file
@@ -1,12 +0,0 @@
1
- 001b 9 1000 310938 23:21:00 27/09/1995
2
- 001b.dat 16+512 1600 12 0 0 0 0 V1
3
- 001b.dat 16+512 1600 12 0 0 0 0 V2
4
- 001b.dat 16+512 1600 12 0 0 0 0 V3
5
- 001b.dat 16+512 1600 12 0 0 0 0 V4
6
- 001b.dat 16+512 1600 12 0 0 0 0 V5
7
- 001b.dat 16+512 1600 12 0 0 0 0 V6
8
- 001b.dat 16+512 1600 12 0 0 0 0 I
9
- 001b.dat 16+512 1600 12 0 0 0 0 II
10
- 001b.dat 16+512 1600 12 0 0 0 0 III
11
- # Age: 52
12
- # Sex: F
@@ -1 +0,0 @@
1
- __version__ = "4.3.0"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes