Skip to main content

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

pyphasesrecordloadermesa-0.5.2.tar.gz (5.6 kB view details)

Uploaded Source

File details

Details for the file pyphasesrecordloadermesa-0.5.2.tar.gz.

File metadata

  • Download URL: pyphasesrecordloadermesa-0.5.2.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for pyphasesrecordloadermesa-0.5.2.tar.gz
Algorithm Hash digest
SHA256 2580b3e357f4d3840b07c89ee2287571cf66ff88aeeb28e4908c45b953523576
MD5 9f7c8d2cf8a47c08430c9a9df0b792fe
BLAKE2b-256 3df183557801de6dabe6485346e4f85620672118b6082eb478f6482712b5c765

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page