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.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | adb3b244d18961fe504ebe537a73292895f8445a8172cdffa327feb9553f86cb |
|
MD5 | 0a9d01fe0fe5feffb08d036ac1cc8410 |
|
BLAKE2b-256 | 3162d643fdf2f4a383f0f320f177293c549523115e2ab7f99a8cf0d3746b1c9e |