Skip to main content

midas-grain-odf

Differentiable per-grain orientation distribution function (ODF) inversion from far-field HEDM data. Closes the gap left open by Nygren et al. 2019 (IOP Conf. Ser. MSE 580 012018) — recovers the intensity-weighted ODF, not just the GOE envelope.

See dev/implementation_plan.md for the design rationale and roadmap.

Status

Alpha. Synthetic plant-and-recover validation only. Real-data path under construction.

Install

cd packages/midas_grain_odf
pip install -e .[dev]

The package depends on the differentiable HEDM forward model in fwd_sim/hedm_forward.py. That module is loaded by relative import; ensure MIDAS/fwd_sim is on PYTHONPATH when using the package outside the MIDAS repo.

Notebooks

Worked-example Jupyter notebooks live in notebooks/. They are not shipped with pip install — get them by cloning the MIDAS repository.

Quickstart (synthetic)

cd packages/midas_grain_odf
python -m pytest tests/test_synth_particle.py -xvs

Public API

from midas_grain_odf import (
    ParticleODF, BinghamMixtureODF, VoxelGridODF,
    fit_grain_odf,
)

Metadata

Release files for midas-grain-odf 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for midas-grain-odf 0.2.0
File Size Uploaded
midas_grain_odf-0.2.0.tar.gz 83.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for midas-grain-odf 0.2.0
File Interpreter ABI Platform
midas_grain_odf-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 150.2 kB

Release files / midas_grain_odf-0.2.0.tar.gz

Download URL midas_grain_odf-0.2.0.tar.gz
Size 83.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ceb8039a2bd9bc21a22f99b345de540f9a737c8a4a1d317a0ca4dc6af1703b97
BLAKE2b-256 checksum
How to use checksums
bc26429cec1d0cf0f29450b6a79ddee8da01cc6d006df09754cd6d370dc9fe50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 14, 2026.

Transparency log

Release files / midas_grain_odf-0.2.0-py3-none-any.whl

Download URL midas_grain_odf-0.2.0-py3-none-any.whl
Size 67.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
029b446724f4412926a29656867bac8c52e07738680a4146f8b3728e63d22d7a
BLAKE2b-256 checksum
How to use checksums
a0ff6ec057906d720a05a2e614494bb4fe3b4bd9e3c4e6b34c1b568cca133bbb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 14, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page