Skip to content
Projects

Installation

OpenCR needs Python 3.10 or newer. With pip:

pip install opencr

or from a checkout, with uv:

git clone https://github.com/max-models/OpenCR
cd opencr
make install # uv sync --extra dev, plus the pre-commit hooks

The core needs NumPy, SciPy, xarray and plasmacoll (the cross sections). Nothing else is imported unless you use it.

ExtraInstallsFor
cunumpycunumpyaccelerated array backends (planned)
jaxJAXdifferentiable backends (planned)
mlscikit-learnsurrogate models (planned)
testpytest and coveragerunning the tests
docsthe notebook runner, griffe, plasma-plotsbuilding these pages
devlinters and formatters, test and docsdevelopment
pip install "opencr[test]"
pytest --pyargs opencr

The comparison with ADAS runs only when OPENCR_ADAS_DIR points to a folder with your own downloads of OPEN-ADAS scd12_h.dat and acd12_h.dat (their terms do not allow OpenCR to ship them), see Verification.