Skip to main content

Adds a record loaders to the pyPhases package

Project description

Extension for pyPhasesRecordloader

Extension to load data records from the MrOS Sleep Study (MrOS) database.

The extensions requires a downloaded version of the mros dataset. The location can be set through the config value mros-path.

Usage

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

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

name: MrOSProject
plugins:
  - pyPhasesML
  - pyPhasesRecordloaderMrOS
  - pyPhasesRecordloader

phases:
  - name: MyPhase

config:
  mros-path: C:/datasets/mros

In a phase (phases/MyPhase.py) you can acess the records through 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

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

pyphasesrecordloadermros-0.7.0.tar.gz (5.7 kB view details)

Uploaded Source

File details

Details for the file pyphasesrecordloadermros-0.7.0.tar.gz.

File metadata

File hashes

Hashes for pyphasesrecordloadermros-0.7.0.tar.gz
Algorithm Hash digest
SHA256 f3babdd95be9031565a26ad9b795365b60d169fa2499096c853290d636700f2b
MD5 c53f65a7f87ccf53939a4bca8106871e
BLAKE2b-256 338d3a3858cc537253cc123e1aa3667ca2141a11252985c824ea4bda9a64b747

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