Skip to main content

Lineage-tracked batch execution for scientific data pipelines

Project description

SciHist

Batch execution utilities for data pipelines.

Provides utilities for running functions over combinations of metadata, automatically loading inputs and saving outputs.

Usage

from scihist import for_each, Fixed

for_each(
    process_data,
    inputs={"raw": RawData, "calibration": Fixed(Calibration, session="baseline")},
    outputs=[ProcessedData],
    subject=[1, 2, 3],
    session=["A", "B", "C"],
)

for_each

Executes a function for all combinations of metadata, loading inputs and saving outputs automatically.

Fixed

Wrapper to specify fixed metadata overrides for an input. Use when an input should be loaded with different metadata than the current iteration.

# Always load baseline from session="BL", regardless of current session
for_each(
    compare_to_baseline,
    inputs={
        "baseline": Fixed(StepLength, session="BL"),
        "current": StepLength,
    },
    outputs=[Delta],
    subject=[1, 2, 3],
    session=["A", "B", "C"],
)

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

scihist-0.1.0.tar.gz (19.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scihist-0.1.0-py3-none-any.whl (21.6 kB view details)

Uploaded Python 3

File details

Details for the file scihist-0.1.0.tar.gz.

File metadata

  • Download URL: scihist-0.1.0.tar.gz
  • Upload date:
  • Size: 19.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for scihist-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c7cd539710e94bfae189c4780066804f423ccd97d54ae9e8b4e891160940dc6e
MD5 0823da1ba8ea065694c1c74f7fe73bfd
BLAKE2b-256 9c41c997e01f8b8cf2071c80ab204176c0beb60ebb95942a045aa6f970e341c5

See more details on using hashes here.

File details

Details for the file scihist-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: scihist-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 21.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for scihist-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b0c0d971274572cb34017d3e26ef615cf49742a51b3d43b12f35a7fc65d413f3
MD5 4b50feb0a5839f4f7046985a844bc5d8
BLAKE2b-256 acaff08a81c20f80ff94485a9613cce5491a3906cbf8ae17182f68f6653a2f2f

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