Installation
Python 3.10 or newer is required. Create and activate a Python environment:
python -m venv envsource env/bin/activatepip install --upgrade pipInstall the package and its requirements with pip:
pip install simgeometryImport the package with from simgeometry.grid import Grid.
Optional extras
Section titled “Optional extras”| Extra | Installs |
|---|---|
evaluate | xarray for labelled coordinate samples |
mesh | scikit-image for contour and surface extraction |
plot | Matplotlib plus the evaluate and mesh extras |
interactive | PyVista plus the plot extra for interactive 3D clipping |
mpi | mpi4py for MPI runs |
test | pytest, pytest-cov, and mpi4py |
docs | the notebook runner, Matplotlib, and griffe for the API reference |
dev | development tools plus the test and docs extras |
pip install -e ".[dev]"Run the tests from the repository root with pytest src/simgeometry/tests.