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

Uploaded Source

File details

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

File metadata

  • Download URL: pyphasesrecordloadershhs-0.9.0.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for pyphasesrecordloadershhs-0.9.0.tar.gz
Algorithm Hash digest
SHA256 2b98f9cbb31cca8c7f20d08f395f0cf696e9dc78b75748aa3703d0f47e6fa0bd
MD5 d26bf8138e3d976b9c65a8df0423c4eb
BLAKE2b-256 2d992df24c8f9d94dc6797c5ea86f22bb2caf1f9188ca9085b3e26ab3120c0c3

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