Installation

sp_validation is not distributed on PyPI. It runs from a pre-built container, managed by the bundled spv-container CLI; check out the source with uv only when you need to edit the package itself.

Other ways to run the image

The published image is a normal OCI image; spv-container is a convenience, not a gatekeeper. Run it directly with Apptainer:

apptainer pull sp_validation.sif docker://ghcr.io/cosmostat/sp_validation:develop
apptainer shell sp_validation.sif

or with Docker:

docker run --rm -it ghcr.io/cosmostat/sp_validation:develop python -c "import sp_validation"

Note

We do not build images for Apple Silicon / arm64. The amd64 images run on these machines under emulation, more slowly.

Development install

To run the test suite or build these docs, clone the repository and install it in editable mode. The package is managed with uv:

git clone https://github.com/CosmoStat/sp_validation.git
cd sp_validation
uv pip install -e '.[develop]'

The develop extra pulls in both the testing and documentation dependencies. For a narrower install, .[test] adds only the test extras and .[docs] only the Sphinx stack.

Note

sp_validation requires Python 3.11 or newer and pulls in a large scientific stack: treecorr, pyccl, healpy, pymaster, and others. A bare development install builds these from source, which is slow and platform-sensitive. For most users the container is the more reliable path.