Adds a record loaders to the pyPhases package
Project description
Extension for pyPhasesRecordloader
Extension to load data records from the Sleep Heart Health Study (SHHS) database. Inlcuding both parts (shhs1 and shhs2).
The extensions requires a downloaded version of the shhs dataset. The location can be set through the config value shhs-path
.
Usage
In a phase you can acess 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 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
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
Close
Hashes for pyPhasesRecordloaderSHHS-0.1.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa04dd08539300dc9e85123f60c1f2886f01c6eda0bb24099af19acd0c58fc7b |
|
MD5 | 3cf361808469146941a7afe26bd7f2a0 |
|
BLAKE2b-256 | 32a5930b73f288a5c5469108e33cb0d2617a119438d22e68b82c722e2e296d9c |