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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7cd539710e94bfae189c4780066804f423ccd97d54ae9e8b4e891160940dc6e
|
|
| MD5 |
0823da1ba8ea065694c1c74f7fe73bfd
|
|
| BLAKE2b-256 |
9c41c997e01f8b8cf2071c80ab204176c0beb60ebb95942a045aa6f970e341c5
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0c0d971274572cb34017d3e26ef615cf49742a51b3d43b12f35a7fc65d413f3
|
|
| MD5 |
4b50feb0a5839f4f7046985a844bc5d8
|
|
| BLAKE2b-256 |
acaff08a81c20f80ff94485a9613cce5491a3906cbf8ae17182f68f6653a2f2f
|