Skip to main content

Adds a record loaders to the pyPhases package

Project description

Extension for pyPhasesRecordloader

Extension to load records from the Sleep Heart Health Study (SHHS) database. Includes both parts (shhs1 and shhs2).

The extension requires a downloaded version of the shhs dataset. The location can be set using the `shhs-path' configuration value.

Usage

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

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

name: SHHSProject
plugins:
  - pyPhasesML
  - pyPhasesRecordloaderSHHS
  - pyPhasesRecordloader

phases:
  - name: MyPhase

config:
  shhs-path: C:/datasets/shhs

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.

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

pyPhasesRecordloaderSHHS-0.6.0.tar.gz (7.9 kB view details)

Uploaded Source

File details

Details for the file pyPhasesRecordloaderSHHS-0.6.0.tar.gz.

File metadata

File hashes

Hashes for pyPhasesRecordloaderSHHS-0.6.0.tar.gz
Algorithm Hash digest
SHA256 5b1e5fc5af58ce92cfb4eda73f7b25cbb7725522ae826fa3260a9c7d8d7ea980
MD5 b01067f73f80b16602a3867bbef1eb27
BLAKE2b-256 c119c7f1f93db6dbf622a5e285c00b77a63cb1075ab60cb3e0b5d2f229c81115

See more details on using hashes here.

Supported by

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