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
dmipypackage; 2.x is a meta-package with no importabledmipymodule — you importdmipy_sim/dmipy_fit. Oldimport dmipycode will not run under 2.x. To stay on the original toolbox, pinpip install "dmipy<2"(it remains available on PyPI).
This repo
pyproject.toml— the thindmipymeta-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); currentlypapers/surface_relaxivity_bias/— "Surface relaxivity biases diffusion and relaxometry microstructure estimates." Seepapers/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)
| 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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 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 logRelease 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 logSecurity 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.
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 logA 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.