Skip to main content

obdeect

Obdeect optical ray tracing for imaging atmospheric Cherenkov telescopes

obdeect is a C++20 optical ray tracer for imaging atmospheric Cherenkov telescopes. The C++ core uses only the standard library. Python compiles optical models from the simulation models, traces photons, and plots results; simtools uses it as a ray-tracing backend.

See the user guide, the physics of the photon path, and the validation against sim_telarray.

User Installation

Install from PyPI with:

python -m venv .venv
source .venv/bin/activate
python -m pip install obdeect

(requires python 3.14 or higher)

Verify the installation by compiling an optical model from a simulation-models checkout and tracing a star:

obdeect compile --simulation-models ../simulation-models --model MSTN-01 \
  --version 7.0.0 --seed 1 --zenith-deg 20 --output mst.json
obdeect trace --model mst.json --seed 2 --photons 10000 --field-deg 0.5 0

Developer Installation

python -m venv .venv
source .venv/bin/activate
python -m pip install -e '.[dev]'
cmake --preset debug
cmake --build --preset debug --target clean  # optional: clean the build directory before building
cmake --build --preset debug

The C++ tests are in build/debug/tests/.

Test your installation with:

ctest --test-dir build/debug --output-on-failure
python -m pytest python/tests

License and Citation

BSD-3-Clause license. Citation metadata is in CITATION.cff.

Generative AI disclosure

Generative AI tools (mostly ChatGPT 5.6, Opus 5.5) were used to write the entire code of this project. All AI-assisted outputs were reviewed, validated, and, where necessary, modified by the authors to ensure accuracy and reliability.

Documentation

Build the documentation locally (in the virtual environment) with:

python -m pip install -e '.[docs]'
sphinx-build -W --keep-going -b html docs docs/_build/html

Open docs/_build/html/index.html in a browser. The figures in docs/_static/figures/ are part of the repository; regenerate them from new validation results with python docs/figures/make_figures.py.

Metadata

Release files for obdeect 0.7.0

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

Source distribution (sdist)

Source distribution for obdeect 0.7.0
File Size Uploaded Provenance Actions
obdeect-0.7.0.tar.gz 5.3 MB With provenance Details for obdeect-0.7.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for obdeect 0.7.0
File Actions
obdeect-0.7.0-cp314-cp314-musllinux_1_2_x86_64.whl CPython 3.14 CPython 3.14 Linux musl 1.2+ x86-64 Details for obdeect-0.7.0-cp314-cp314-musllinux_1_2_x86_64.whl
obdeect-0.7.0-cp314-cp314-musllinux_1_2_aarch64.whl CPython 3.14 CPython 3.14 Linux musl 1.2+ ARM64 Details for obdeect-0.7.0-cp314-cp314-musllinux_1_2_aarch64.whl
obdeect-0.7.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for obdeect-0.7.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
obdeect-0.7.0-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.26+ ARM64, Linux glibc 2.28+ ARM64 Details for obdeect-0.7.0-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
obdeect-0.7.0-cp314-cp314-macosx_13_0_arm64.whl CPython 3.14 CPython 3.14 macOS 13.0+ ARM64 Details for obdeect-0.7.0-cp314-cp314-macosx_13_0_arm64.whl

Total release size: 6.6 MB

Release files / obdeect-0.7.0.tar.gz

Download URL obdeect-0.7.0.tar.gz
Size 5.3 MB
Tags Source
SHA-256 checksum
How to use checksums
6b7f09078e337810eb3c3ddd80bf40b67019eb3371febfbb4a93dc3001a7b807
BLAKE2b-256 checksum
How to use checksums
6c6d4bb51ffd45e3809f4ffa8735e4c8dca49e3e2fcbc3c657410c5017a48ea5
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 Nov 4, 2026.

Transparency log

Release files / obdeect-0.7.0-cp314-cp314-musllinux_1_2_x86_64.whl

Download URL obdeect-0.7.0-cp314-cp314-musllinux_1_2_x86_64.whl
Size 315.4 kB
Tags CPython 3.14 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
c0b5b6e038d52670b6189aba90cfaab544e8a058b58991bc58b560d2397b7cbd
BLAKE2b-256 checksum
How to use checksums
c9444be480dce08fe7731fb617758dd0685b232401ad665e67742b4f78e3d924
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 Nov 4, 2026.

Transparency log

Release files / obdeect-0.7.0-cp314-cp314-musllinux_1_2_aarch64.whl

Download URL obdeect-0.7.0-cp314-cp314-musllinux_1_2_aarch64.whl
Size 303.3 kB
Tags CPython 3.14 Linux musl 1.2+ ARM64
SHA-256 checksum
How to use checksums
0ca10b607d5ac008907213881755c116e8490e698776cea5a3d5db0e94858024
BLAKE2b-256 checksum
How to use checksums
b2e31643ca0ace1d195cf7fbac91d84cd5364c61342f7f0ee80f994cff5fc381
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 Nov 4, 2026.

Transparency log

Release files / obdeect-0.7.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL obdeect-0.7.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 215.9 kB
Tags CPython 3.14 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
4bd87adc4b50b72cb69d4613db12fa68bdde0ab64890c5c26c9f09de2f7e6733
BLAKE2b-256 checksum
How to use checksums
6192954b86baeb0f99d24a573f9b2cdc728bc1b5874bfeb01d805bc2ac547560
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 Nov 4, 2026.

Transparency log

Release files / obdeect-0.7.0-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL obdeect-0.7.0-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 206.2 kB
Tags CPython 3.14 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
cb0e1fd20c2ca11da73e0c8bee21b22c64f5670d82c8a2cbecaa7626be6b4ff3
BLAKE2b-256 checksum
How to use checksums
50292f0ddc536bfb9ab99de61a52b845ca81e23676e4fa8d5baa555aeeb0de24
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 Nov 4, 2026.

Transparency log

Release files / obdeect-0.7.0-cp314-cp314-macosx_13_0_arm64.whl

Download URL obdeect-0.7.0-cp314-cp314-macosx_13_0_arm64.whl
Size 195.7 kB
Tags CPython 3.14 macOS 13.0+ ARM64
SHA-256 checksum
How to use checksums
80820e5a8ae7f959ae3a033433931e6361a66899b00d860dd657857a8ab92d0a
BLAKE2b-256 checksum
How to use checksums
e532f0f50ba2df2f3078f75ee1a0fc765e758a6580f7fde0b3d9f3e7e7941ab2
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 Nov 4, 2026.

Transparency log

Security for obdeect 0.7.0

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

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for obdeect-0.7.0.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 Nov 4, 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