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.8.0.tar.gz (9.6 kB view details)

Uploaded Source

File details

Details for the file pyphasesrecordloadershhs-0.8.0.tar.gz.

File metadata

File hashes

Hashes for pyphasesrecordloadershhs-0.8.0.tar.gz
Algorithm Hash digest
SHA256 1774de6cba7fd8db0bd51fee9a79aebca7585c58d761e079e2d521989f622869
MD5 de0728c6d6d25ca575c3bd535a466c61
BLAKE2b-256 987e85a0b9b11aef3c0ff1b968cb7cc8f9e544889b0264e7018e3277f9d57417

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