Adds a record loaders to the pyPhases package
Project description
Extension for pyPhasesRecordloader
Extension to load data records from the Multi-Ethnic Study of Atherosclerosis (MESA) database.
The extensions requires a downloaded version of the MESA dataset. The location can be set through the config value mesa-path
.
Usage
In a phase you can acess the data through the RecordLoader
:
Add the plugins and config values to your project.yaml
:
name: MesaProject
plugins:
- pyPhasesML
- pyPhasesRecordloaderMESA
- pyPhasesRecordloader
phases:
- name: MyPhase
config:
mesa-path: C:/datasets/mesa
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
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 pyPhasesRecordloaderMESA-0.3.0.tar.gz
.
File metadata
- Download URL: pyPhasesRecordloaderMESA-0.3.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55999f5508320423f37481186a6180745a14ad36d0d09b3cc08e3753acd940f8 |
|
MD5 | fcf36160ac0b4c7bc3f14beb0692723b |
|
BLAKE2b-256 | 01d3c0e871f42f17d77c3fe76a496597991f01301511137b4c7b8724c720e0d8 |