Skip to main content

Adds a record loaders to the pyPhases package

Project description

Extension for pyPhasesRecordloader

Usage

In a phase you can access the data through the RecordLoader:

Add the plugins and config values to your project.yaml:

name: DominoProject
plugins:
  - pyPhasesML
  - pyPhasesRecordloaderDomino
  - pyPhasesRecordloader

phases:
  - name: MyPhase

config:
  domino-path: C:/datasets/recordings

In a phase (phases/MyPhase.py) you can access the records using the RecordLoader:

from pyPhasesRecordloader import RecordLoader
from pyPhases import Phase

class MyPhase(Phase):
    def run(self):
      recordIds = recordLoader.getRecordList()
      for recordId in recordIds:
        record = recordLoader.getRecord(recordId)

Run your project with python -m phases run MyPhase.

The RecordLoader requires EDF files (using the EDF export), annotations (using the annotation export) and ERG files from the raw Domino data. An example of our setup can be found at https://gitlab.com/sleep-is-all-you-need/dominodatasetcreator.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyphasesrecordloaderdomino-0.1.3.tar.gz (12.1 kB view details)

Uploaded Source

File details

Details for the file pyphasesrecordloaderdomino-0.1.3.tar.gz.

File metadata

File hashes

Hashes for pyphasesrecordloaderdomino-0.1.3.tar.gz
Algorithm Hash digest
SHA256 e42b6a32a6b373f3ffebd99c5bcdc044b48c9a6ade92a284f1664c980cebccac
MD5 0c50ddd498e16c957b29a97a71e6eae6
BLAKE2b-256 86ed0f2a717418c2328f36ba08aab77f7e275e998ae48495ca2ae1d01e8a4aa8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page