Metadata-Version: 2.4
Name: pyPhasesRecordloaderPhysionet
Version: 0.2.1
Summary: Adds a record loaders to the pyPhases package
Home-page: https://gitlab.com/tud.ibmt.public/pyphases/pyphasesrecordloader/
Author: Franz Ehrlich
Author-email: fehrlichd@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.5
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pyPhases
Requires-Dist: wfdb
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# PhysioNet 2018 "You Snooze you Win" Recordloader - Plugin

pyPhases plugin that adds a Recordloader to your Project. The [RecordLoader](https://gitlab.com/tud.ibmt.public/pyphases/pyphasesrecordloader) plugin is required.


## How to use in you project

- install `pip install pyPhasesRecordloaderPhysionet` the Recordloader. 
- add the plugin to your `project.yaml`
- set the configuration to use the loader: `useLoader: physionet`
- set your path to the dataset: `physionet-path: /datasets/physio2018`

Example integration for the `project.yaml`:
```yaml
# ...

plugins:
  - pyPhasesRecordloaderPhysionet
  - pyPhasesRecordloader

# ...

config:
  useLoader: physionet
  physionet-path: /datasets/physio2018
```

- load a recording within a phase: `recordSignal, events = RecordLoader.get().loadRecord(recordId)`

```python

from pyPhases import Phase
from pyPhasesRecordloader import RecordLoader

class MyPhase(Phase):
    def main():
        rl = RecordLoader.get()
        recordSignal, events = rl.loadRecord(recordId)
        print(events)
        print(recordSignal.signalNames)

# run with: phases run MyPhase
```

## Dataset

- Records: 994
- Signals: F3-M2, F4-M1, C3-M2, C4-M1, O1-M2, O2-M1, E1-M2, Chin1-Chin2, ABD, CHEST, AIRFLOW, SaO2, ECG
