Skip to content

Installation

Python 3.10 or newer is required. Create and activate a Python environment:

Terminal window
python -m venv env
source env/bin/activate
pip install --upgrade pip

Install the package and its requirements with pip:

Terminal window
pip install simgeometry

Import the package with from simgeometry.grid import Grid.

ExtraInstalls
evaluatexarray for labelled coordinate samples
meshscikit-image for contour and surface extraction
plotMatplotlib plus the evaluate and mesh extras
interactivePyVista plus the plot extra for interactive 3D clipping
mpimpi4py for MPI runs
testpytest, pytest-cov, and mpi4py
docsthe notebook runner, Matplotlib, and griffe for the API reference
devdevelopment tools plus the test and docs extras
Terminal window
pip install -e ".[dev]"

Run the tests from the repository root with pytest src/simgeometry/tests.