midas-propagate
Calibration-aware uncertainty propagation and joint re-refinement for end-to-end HEDM grain analysis.
Status: scaffold. See dev/paper/SKETCH.md
for the paper roadmap. No working code yet.
Notebooks
Worked-example Jupyter notebooks live in notebooks/. They are not shipped with pip install — get them by cloning the MIDAS repository.
What this package will do
-
Compose the existing differentiable losses across the four pipeline stages — calibration (
midas-calibrate-v2), indexing (midas-index), per-grain refinement (midas-fit-grain), and elastic inversion (midas-stress) — into a single joint NLL. -
Compute a joint MAP estimate over any subset of:
- detector calibration (Lsd, tilts, beam center, distortion)
- per-grain orientation, lattice strain, position
- global nuisance parameters (wavelength, beam profile)
- optionally per-grain elastic stress
-
Assemble the block-structured Hessian at MAP and return calibration-aware per-grain covariance via Schur-complement marginalization — no full-matrix inverse needed.
-
Propagate per-grain covariance through the elastic inversion to per-grain stress error bars via the delta method.
Why
Production HEDM tools (HEXRD, MIDAS, ImageD11, FABLE) report per-grain σ at the converged grain state with detector calibration held fixed. Downstream Bayesian crystal-plasticity work (Greeley 2026, Iyer 2025) explicitly assumes an HEDM σ no current tool can derive. This package closes that loop.
Companion packages
midas-diffract— differentiable HEDM forward modelmidas-uq— single-grain holdout / jackknife / Laplace UQmidas-joint-ff-calibrate— multi-grain + multi-detector joint refinementmidas-calibrate-v2— instrument calibrationmidas-stress— single-crystal elastic inversion
Metadata
Release files for midas-propagate 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| midas_propagate-0.1.1.tar.gz | 22.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| midas_propagate-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.4 kB
Release files / midas_propagate-0.1.1.tar.gz
| Download URL | midas_propagate-0.1.1.tar.gz |
|---|---|
| Size | 22.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
77f77c5235966609cba2474560f14d8c8b90083c8a18bced571bf81d97cb929d
|
|
BLAKE2b-256 checksum How to use checksums |
c7f5799b2754b5d704d8a57cf2f84ece68c60368ac33f89096b69e08047b354d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 26, 2026.
Transparency logRelease files / midas_propagate-0.1.1-py3-none-any.whl
| Download URL | midas_propagate-0.1.1-py3-none-any.whl |
|---|---|
| Size | 15.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8f2c5923fd76977f28ef245d9dc1168036f620e45b31957dfb0b799af80d7e0f
|
|
BLAKE2b-256 checksum How to use checksums |
203501be93a4b2fc38c46827cc214009037843f473ddd4de70dd6c2d37e2797a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 26, 2026.
Transparency log