Skip to main content

midas-invert

Domain-agnostic differentiable-inversion primitives for MIDAS, shared across HEDM, Laue microdiffraction, pf-/grain-ODF, and 2D/ultrafast diffraction. None of it knows about diffraction — you supply the forward model and the loss closure.

  • optimizefit (Adam / L-BFGS), relative_l2_loss (scale-robust), cosine_loss (scale-invariant shape loss; avoids the argmax kink of peak-normalisation — right for rocking curves, fringe profiles, spectra).
  • uqlaplace_uncertainty (Hessian-at-optimum covariance & std-devs).
  • designfisher_information, rank_measurements, next_best_measurement (which delay / reflection / energy best constrains a target — experiment design).
  • mixturemixture_deconvolution (recover non-negative softmax weights over a component grid: thickness/grain-size distributions, ODF on a grid, a spectrum over an energy grid).
  • surrogateParameterMLP, train_surrogate (amortised inference; the differentiable forward is the data generator).

All torch-differentiable, CPU / CUDA / MPS. Extracted from midas_2d so HEDM, Laue, and 2D draw on one implementation (see ../HEDM_LAUE_TRANSFER_PLAN.md).

pip install -e . --no-deps
KMP_DUPLICATE_LIB_OK=TRUE pytest

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

midas_invert-0.1.1.tar.gz (22.8 kB view details)

Uploaded Source

Built Distribution

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

midas_invert-0.1.1-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: midas_invert-0.1.1.tar.gz
  • Upload date:
  • Size: 22.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for midas_invert-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2befcff1b13a380852ddc5bf790b710063ecfec3da80e275909268e3a0257fb6
MD5 8fae2753f2ff821e22be001b575da37b
BLAKE2b-256 7467b2982607d0def6f04866f03e4a28d0851d68b6c53810ddd12c60c0fe83a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for midas_invert-0.1.1.tar.gz:

Publisher: python-packages.yml on marinerhemant/MIDAS

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file midas_invert-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: midas_invert-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for midas_invert-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 36ada9a437881ab2a05beddc7b294da513ee2404fb1b93b53ff67241ca40885d
MD5 9c7941afca14db7bad03295b8a331010
BLAKE2b-256 7cf43c76aa272a683a263df56760bcf94578c6c7b268829caea73b0bd901a515

See more details on using hashes here.

Provenance

The following attestation bundles were made for midas_invert-0.1.1-py3-none-any.whl:

Publisher: python-packages.yml on marinerhemant/MIDAS

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page