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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pyPhasesRecordloaderSHHS-0.6.0.tar.gz
.
File metadata
- Download URL: pyPhasesRecordloaderSHHS-0.6.0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b1e5fc5af58ce92cfb4eda73f7b25cbb7725522ae826fa3260a9c7d8d7ea980 |
|
MD5 | b01067f73f80b16602a3867bbef1eb27 |
|
BLAKE2b-256 | c119c7f1f93db6dbf622a5e285c00b77a63cb1075ab60cb3e0b5d2f229c81115 |