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
File details
Details for the file pyPhasesRecordloaderMrOS-0.4.2.tar.gz
.
File metadata
- Download URL: pyPhasesRecordloaderMrOS-0.4.2.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcc6b93f08943494ed4e9f888eeab6fb703a324f46544ac06d421f6365944229 |
|
MD5 | a4cbe025621cab87fde5a7c05808f44b |
|
BLAKE2b-256 | f0a185c6cea9e03b02159e394312ea11ae951a8f2e9976bc799956f72044ebab |