Metadata-Version: 2.4
Name: dmipy
Version: 3.0.0
Summary: Diffusion Microstructure Imaging in Python — umbrella install for dmipy-sim (forward Monte Carlo), dmipy-replay (the replay-pack reader), dmipy-fit (analytical inverse) and dmipy-design (sequence design)
Author-email: Rutger Fick <fick.rutger@gmail.com>
License: AGPL-3.0-only OR LicenseRef-Commercial
Project-URL: Homepage, https://dmipy.org
Project-URL: Source, https://github.com/dmrai-lab
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: dmipy-sim<4,>=3
Requires-Dist: dmipy-replay<0.3,>=0.2
Requires-Dist: dmipy-fit<4,>=3
Requires-Dist: dmipy-design<4,>=3
Provides-Extra: cuda12
Requires-Dist: jax[cuda12]>=0.6.2; extra == "cuda12"
Requires-Dist: jaxopt>=0.8; extra == "cuda12"
Provides-Extra: cpu
Requires-Dist: jax[cpu]>=0.6.2; extra == "cpu"
Requires-Dist: jaxopt>=0.8; extra == "cpu"
Provides-Extra: tract
Requires-Dist: dmipy-tract<0.2,>=0.1; extra == "tract"
Provides-Extra: docs
Requires-Dist: mkdocs-material>=9.5; extra == "docs"
Requires-Dist: mkdocstrings[python]>=0.24; extra == "docs"
Requires-Dist: mkdocs-jupyter>=0.24; extra == "docs"
Requires-Dist: black>=24.0; extra == "docs"
Provides-Extra: test
Requires-Dist: pytest>=7; extra == "test"
Requires-Dist: jax[cpu]>=0.6.2; extra == "test"
Dynamic: license-file

# dmipy

**Diffusion Microstructure Imaging in Python** — the revived project's **umbrella install and
documentation home**.

> One shared `G(t)` + substrate across the whole loop — **design** the sequence, **simulate** the
> signal, **fit** the tissue:
> **[dmipy-design](https://github.com/dmrai-lab/dmipy-design)** · deliverable sequence **design**
> &nbsp;·&nbsp; **[dmipy-sim](https://github.com/dmrai-lab/dmipy-sim)** · Monte-Carlo **forward**
> &nbsp;·&nbsp; **[dmipy-fit](https://github.com/dmrai-lab/dmipy-fit)** · analytical **inverse**
> &nbsp;·&nbsp; **dmipy** · umbrella + docs *(you are here)*.
>
> Docs: **[dmipy.org](https://dmipy.org)** &nbsp;·&nbsp; coming from the 2019 toolbox?
> [What's changed in 2.x](https://dmipy.org/migrating/)

```bash
pip install dmipy            # dmipy-sim + dmipy-replay + dmipy-fit + dmipy-design
pip install "dmipy[tract]"   # + dmipy-tract, tractography on FOD fields
pip install "dmipy[cuda12]"  # + JAX GPU
```

```python
import dmipy_sim, dmipy_replay, dmipy_fit, dmipy_design   # no importable `dmipy`; import the packages 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 dmipy-sim, dmipy-replay, dmipy-fit and
  dmipy-design; the `tract` extra adds dmipy-tract).
- `docs/` + `mkdocs.yml` — the [dmipy.org](https://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`](papers/README.md).

Build the docs locally:

```bash
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](LICENSE) and
[LICENSING.md](LICENSING.md) (commercial: rutger.fick@dmrai-lab.org).

The lab and its philosophy: **[dmrai-lab.org](https://dmrai-lab.org)**.
