Skip to main content

dmipy

Diffusion Microstructure Imaging in Python — the umbrella over the two engines, and the home of the documentation at dmipy.org.

  • dmipy-sim — JAX Monte-Carlo forward simulator (arbitrary G(t), restricted diffusion, surface relaxivity, permeability, T2).
  • dmipy-fit — analytical multi-compartment fitting + JAX GPU (T2 + surface-relaxivity factors, CSD, NNLS myelin-water fraction).

One free-waveform substrate interface, fit → sim.

pip install dmipy            # dmipy-sim + dmipy-fit
pip install "dmipy[cuda12]"  # + JAX GPU
import dmipy_sim, dmipy_fit   # no importable `dmipy`; import the engines directly

Upgrading from dmipy 1.x? dmipy 2.0 is a ground-up rewrite with a different architecture and API. The 1.x line (the original 2019 toolbox, Fick–Wassermann–Deriche) was a single importable dmipy package; 2.x is a meta-package with no importable dmipy module — you import dmipy_sim / dmipy_fit. Old import dmipy code will not run under 2.x. To stay on the original toolbox, pin pip install "dmipy<2" (it remains available on PyPI).

This repo

  • pyproject.toml — the thin dmipy meta-package (installs the two engines).
  • docs/ + mkdocs.yml — the dmipy.org site (MkDocs Material; built and deployed by .github/workflows/docs.yml).
  • papers/ — reproducible manuscripts (source + PDF + rerunnable figures); currently papers/surface_relaxivity_bias/"Surface relaxivity biases diffusion and relaxometry microstructure estimates." See papers/README.md.

Build the docs locally:

pip install ".[docs]"
mkdocs serve

License

Dual-licensed: GNU AGPL-3.0 for open-source use, or a commercial license for proprietary/closed use — the same terms apply to both engines. See LICENSE and LICENSING.md (commercial: rutger.fick@dmrai-lab.org).

The lab and its philosophy: dmrai-lab.org.

Download files

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

Source Distribution

dmipy-2.1.0.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

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

dmipy-2.1.0-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file dmipy-2.1.0.tar.gz.

File metadata

  • Download URL: dmipy-2.1.0.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for dmipy-2.1.0.tar.gz
Algorithm Hash digest
SHA256 c5ec98c9ff15503218ad49bcb9a696892a0c2790caec72d4a251c76c2bb27f93
MD5 55d25358cbaff08ad1b3c569e31db9af
BLAKE2b-256 388f3a3244f7d8c1bc52a9fb7667cad48adf44efb4e31f356a41ed3992fad13b

See more details on using hashes here.

Provenance

The following attestation bundles were made for dmipy-2.1.0.tar.gz:

Publisher: publish.yml on dmrai-lab/dmipy

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

File details

Details for the file dmipy-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: dmipy-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for dmipy-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f8fc21d0d92f886f27da17b8113432797de5098e0cddcab7277d66740281eb42
MD5 b0d78181c6dcedba19d140f81494a662
BLAKE2b-256 8e89914a791a9b73006588ea51f870df36a9ba74f714e79adcb38f3ae044aed3

See more details on using hashes here.

Provenance

The following attestation bundles were made for dmipy-2.1.0-py3-none-any.whl:

Publisher: publish.yml on dmrai-lab/dmipy

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

2.1.0 This release

2 files

2.0.0

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

1 file

1.0.2

1 file

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