Skip to main content
████████████████████████████████████
▄                                  ▄
▄ ░█▀█░█▀▀░▀█▀░█▀█░█░█░▀█▀░█░█░█▀▀ ▄
▄ ░█░█░█░░░░█░░█▀█░▀▄▀░░█░░█░█░▀▀█ ▄
▄ ░▀▀▀░▀▀▀░░▀░░▀░▀░░▀░░▀▀▀░▀▀▀░▀▀▀ ▄
▄                                  ▄
████████████████████████████████████

PyPI DOI Python CI codecov License Docs Project Status: Active – The project has reached a stable, usable state and is being actively developed. Dependencies pre-commit Ruff

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/SIMBA-C 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, 10/09/2026.

Metadata

Release files for octavius 0.9.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for octavius 0.9.3.1
File Size Uploaded Provenance Actions
octavius-0.9.3.1.tar.gz 143.6 kB With provenance Details for octavius-0.9.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for octavius 0.9.3.1
File Interpreter ABI Platform Actions
octavius-0.9.3.1-py3-none-any.whl Python 3 none any Details for octavius-0.9.3.1-py3-none-any.whl

Total release size: 296.8 kB

Release files / octavius-0.9.3.1.tar.gz

Download URL octavius-0.9.3.1.tar.gz
Size 143.6 kB
Tags Source
SHA-256 checksum
How to use checksums
914cac02fadc1ef198f81940aa8a264571b75efebb604d76a098f50a61aadb3c
BLAKE2b-256 checksum
How to use checksums
84dbb4d84e73fb982f97babdb4b6c4621556a78f789f1971f31906e86a93cbae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 24, 2026.

Transparency log

Release files / octavius-0.9.3.1-py3-none-any.whl

Download URL octavius-0.9.3.1-py3-none-any.whl
Size 153.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a8782523f039dbb9a43519de99e3203401bd14fb5698f7c1a48321b63d483f15
BLAKE2b-256 checksum
How to use checksums
52ad9979d09e1231f4297ce3d7125185c680853b42d0ed3df9d9b1d16c9132e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 24, 2026.

Transparency log

Security for octavius 0.9.3.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for octavius-0.9.3.1.tar.gz

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 Oct 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page