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.3.0.tar.gz (5.0 kB view details)

Uploaded Source

File details

Details for the file pyPhasesRecordloaderMESA-0.3.0.tar.gz.

File metadata

File hashes

Hashes for pyPhasesRecordloaderMESA-0.3.0.tar.gz
Algorithm Hash digest
SHA256 55999f5508320423f37481186a6180745a14ad36d0d09b3cc08e3753acd940f8
MD5 fcf36160ac0b4c7bc3f14beb0692723b
BLAKE2b-256 01d3c0e871f42f17d77c3fe76a496597991f01301511137b4c7b8724c720e0d8

See more details on using hashes here.

Supported by

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