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.

Metadata

Release files for dmipy 2.1.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 dmipy 2.1.0
File Size Uploaded Provenance Actions
dmipy-2.1.0.tar.gz 14.9 kB With provenance Details for dmipy-2.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dmipy 2.1.0
File Interpreter ABI Platform Actions
dmipy-2.1.0-py3-none-any.whl Python 3 none any Details for dmipy-2.1.0-py3-none-any.whl

Total release size: 29.3 kB

Release files / dmipy-2.1.0.tar.gz

Download URL dmipy-2.1.0.tar.gz
Size 14.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c5ec98c9ff15503218ad49bcb9a696892a0c2790caec72d4a251c76c2bb27f93
BLAKE2b-256 checksum
How to use checksums
388f3a3244f7d8c1bc52a9fb7667cad48adf44efb4e31f356a41ed3992fad13b
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 Jul 15, 2026.

Transparency log

Release files / dmipy-2.1.0-py3-none-any.whl

Download URL dmipy-2.1.0-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f8fc21d0d92f886f27da17b8113432797de5098e0cddcab7277d66740281eb42
BLAKE2b-256 checksum
How to use checksums
8e89914a791a9b73006588ea51f870df36a9ba74f714e79adcb38f3ae044aed3
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 Jul 15, 2026.

Transparency log

Security for dmipy 2.1.0

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for dmipy-2.1.0.tar.gz

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 Jul 15, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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