████████████████████████████████████ ▄ ▄ ▄ ░█▀█░█▀▀░▀█▀░█▀█░█░█░▀█▀░█░█░█▀▀ ▄ ▄ ░█░█░█░░░░█░░█▀█░▀▄▀░░█░░█░█░▀▀█ ▄ ▄ ░▀▀▀░▀▀▀░░▀░░▀░▀░░▀░░▀▀▀░▀▀▀░▀▀▀ ▄ ▄ ▄ ████████████████████████████████████
Octavius: The Next-Generation Simulation Analysis Toolkit
Octavius is a high-performance, fully-parallel code designed to produce analysis catalogues of hydrodynamical simulation snapshots. Written entirely in Python with minimal dependencies and all features ready out-of-the-box, it is designed to cleanly slot into analysis workflows.
Catalogues are stored as HDF5 files containing physical properties and membership mapping for both haloes and galaxies, along with cosmological information from the snapshot; the package includes a user-friendly API for working with its catalogues.
Please refer to the documentation for more information.
Install
Octavius is packaged on pip, with a planned conda-forge deployment in the near-future. It can be quickly installed from the terminal by running:
pip install octavius
Features
- Supports SWIFT (EAGLE, KIARA, COLIBRE), TNG, and SIMBA snapshots
- Supports AHF, HBT-HERONS and SUBFIND halo catalogues
- Produces snapshot-agnostic catalogues
- Built-in galaxy finding with a 6D friends-of-friends algorithm
- Computes over fifty properties for haloes and galaxies (including subhaloes)
- Photometry in all FSPS-compatible bands with dust attenuation (no radiative transfer)
- User-friendly API for working with analysis catalogues
- Comprehensive membership mapping, including hierarchies
- Standalone analysis tools (on-the-fly pipeline stages)
- Comprehensive unit and regression tests
Quickstart Guide
To analyse a snapshot, the only prerequisite is to configure Octavius: this can be done through a YAML file. Once installed, a YAML file for you to fill in can be generated in your current directory by running:
octavius init
The analysis can then be called either from the command line, or a Python script.
mpiexec -n 2 octavius analyse -c /path/to/config.yaml
from pathlib import Path
import octavius as oc
# generate table for photometry (optional)
photometry_table_path = Path("/path/to/photometry_table.hdf5")
oc.generate_photometry_table(photometry_table_path)
# from YAML
config_filepath = Path("/path/to/config.yaml")
config = oc.OctaviusConfig.from_yaml(config_filepath)
# can also type parameters manually
config = oc.OctaviusConfig(...)
# analyse a snapshot
catalogue_path = oc.analyse_snapshot(config)
It is recommended to use the command-line method for larger snapshots and more complex workflows, as it is more flexible. For more information, please run:
octavius analyse --help
An object-oriented API is provided for loading and conveniently interfacing with catalogues. This includes methods of mapping the galaxies and haloes in the catalogue to their constituent particles in the raw snapshot as well as group hierarchies (including subhaloes).
from pathlib import Path
import octavius as oc
catalogue_path = Path("/path/to/catalogue.hdf5")
catalogue = oc.load_catalogue(catalogue_path)
# get array of galaxy stellar masses in grams
star_mass_grams = catalogue.galaxies.get_dataset("mass_star", to_units="g")
Furthermore, a standalone analyser is provided to run analysis routines on subsets of haloes and galaxies from the catalogue. This reduces complex workflows to a few lines in a Python script:
from pathlib import Path
import octavius as oc
snapshot_path = Path("/path/to/snapshot.hdf5")
config_path = Path("/path/to/config.yaml")
config = oc.OctaviusConfig.from_yaml(config_path)
catalogue_path = oc.analyse_snapshot(config)
catalogue = oc.load_catalogue(catalogue_path)
analyser = oc.build_analyser(catalogue=catalogue, config=config)
# compute face-on photometry for galaxies 4, 22, 37
photometry_data = analyser.compute_photometry(group_indices=[4, 22, 37], orientation="face-on")
Octavius is mostly written in numba, a just-in-time compiler for Python code; this can add a minute or two of overhead when first run, but thereafter, the compiled functions are cached.
Dependencies
Optional:
- fsps (for photometry data tables)
Citing
Octavius can be cited with Zenodo doi: 10.5281/zenodo.22166634.
Beta
The package is currently in beta pre-release; please keep this in mind if using it for analysis. You are encouraged to please play around with the code and report any bugs or inaccuracies which may arise.
Caesar
Octavius is the spiritual successor to Caesar (source code). There is a short guide for caesar users in the documentation.
Licence
Octavius is licenced under the BSD 3-Clause licence.
Contributing
Contributions and bug reports are warmly encouraged. The package is currently pinned to relatively recent versions of its dependencies, and any investigation as to whether these can be relaxed would be most welcome; otherwise, please refer to CONTRIBUTING.md for more detailed information.
Contributors
- JP Duminy, University of Edinburgh
- Jakub Szpila, Nicolaus Copernicus Astronomical Center
Last updated by JP Duminy, 05/09/2026.
Metadata
Release files for octavius 0.9.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| octavius-0.9.2.1.tar.gz | 139.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| octavius-0.9.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 289.7 kB
Release files / octavius-0.9.2.1.tar.gz
| Download URL | octavius-0.9.2.1.tar.gz |
|---|---|
| Size | 139.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fff09ff7043146256d9b7025af5aa2e64214e10b3fbe4ab914f2d82b2ee30a96
|
|
BLAKE2b-256 checksum How to use checksums |
6232944675c99f8b90a6ab527c0915ea0261e6524756d252e579a18f9db7cc18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 7, 2026.
Transparency logRelease files / octavius-0.9.2.1-py3-none-any.whl
| Download URL | octavius-0.9.2.1-py3-none-any.whl |
|---|---|
| Size | 150.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d4f32dd646da2811c179252a4bdc7127c31d21b88aee815f721bd05ec27dd2f2
|
|
BLAKE2b-256 checksum How to use checksums |
81093ff01383a9b02175483a889087ff98181891f369ebc16411220c0d42c8e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 7, 2026.
Transparency log