Adds a record loaders to the pyPhases package
Project description
Extension for pyPhasesRecordloader
Extension to load data records from the MrOS Sleep Study (MrOS) database.
The extensions requires a downloaded version of the mros dataset. The location can be set through the config value mros-path
.
Usage
In a phase you can acess the data through the RecordLoader
:
Add the plugins and config values to your project.yaml
:
name: MrOSProject
plugins:
- pyPhasesML
- pyPhasesRecordloaderMrOS
- pyPhasesRecordloader
phases:
- name: MyPhase
config:
mros-path: C:/datasets/mros
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 pyPhasesRecordloaderMrOS-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7da1f0b6f661a9ad99ee709f4f2fc994286fe8d8f4820457c288ec1facdda565 |
|
MD5 | 964ff41ac630f1a6b1fdd99ba72e6fa1 |
|
BLAKE2b-256 | 734d7dac30583ed2de32ebef62ffb6e1fa938ec9cc535d99606af80c28ca81e0 |