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 (CFS) database.

The extensions requires a downloaded version of the CFS dataset. The location can be set through the config value cfs-path.

Usage

In a phase you can acess the data through the RecordLoader:

Add the plugins and config values to your project.yaml:

name: MyProject
plugins:
  - pyPhasesML
  - pyPhasesRecordloaderCFS
  - pyPhasesRecordloader

phases:
  - name: MyPhase

config:
  cfs-path: C:/datasets/cfs

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

pyphasesrecordloadercfs-0.1.1.tar.gz (5.6 kB view details)

Uploaded Source

File details

Details for the file pyphasesrecordloadercfs-0.1.1.tar.gz.

File metadata

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

File hashes

Hashes for pyphasesrecordloadercfs-0.1.1.tar.gz
Algorithm Hash digest
SHA256 bc999b6a76ed8ffd1ec1f7fbf136073d4af426711fadbdf48709017a54228a10
MD5 12be11709fde7dbb44d9692d39f32d36
BLAKE2b-256 b907e33231e09352f8339a5aee88cd1ae96c006f1dfe84e8ebbec66480281ead

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