Skip to main content

obdeect

Obdeect optical ray tracing for imaging atmospheric Cherenkov telescopes

DOI

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.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 obdeect 0.7.1
File Size Uploaded Provenance Actions
obdeect-0.7.1.tar.gz 5.3 MB With provenance Details for obdeect-0.7.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for obdeect 0.7.1
File Actions
obdeect-0.7.1-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.1-cp314-cp314-musllinux_1_2_x86_64.whl
obdeect-0.7.1-cp314-cp314-musllinux_1_2_aarch64.whl CPython 3.14 CPython 3.14 Linux musl 1.2+ ARM64 Details for obdeect-0.7.1-cp314-cp314-musllinux_1_2_aarch64.whl
obdeect-0.7.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for obdeect-0.7.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
obdeect-0.7.1-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ ARM64, Linux glibc 2.26+ ARM64 Details for obdeect-0.7.1-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
obdeect-0.7.1-cp314-cp314-macosx_13_0_arm64.whl CPython 3.14 CPython 3.14 macOS 13.0+ ARM64 Details for obdeect-0.7.1-cp314-cp314-macosx_13_0_arm64.whl

Total release size: 6.6 MB

Release files / obdeect-0.7.1.tar.gz

Download URL obdeect-0.7.1.tar.gz
Size 5.3 MB
Tags Source
SHA-256 checksum
How to use checksums
66474d7ec5037a4d45b8b2b64e05c4ff5d691e31c3ad249d5f05d0ebc9784d11
BLAKE2b-256 checksum
How to use checksums
59dbfd889e42367b356d0bda4c300ab6b4c91b68874f6bc93ffd389660ec28f2
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.1-cp314-cp314-musllinux_1_2_x86_64.whl

Download URL obdeect-0.7.1-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
4ed465ff0edab8c6443ade767933fd2c3f0be9a076df2459e7d99df7cf5fd847
BLAKE2b-256 checksum
How to use checksums
f63bdb320168f2b7ea0e5681d6b1c0011d66828ca799099f02363dc31dee519f
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.1-cp314-cp314-musllinux_1_2_aarch64.whl

Download URL obdeect-0.7.1-cp314-cp314-musllinux_1_2_aarch64.whl
Size 303.2 kB
Tags CPython 3.14 Linux musl 1.2+ ARM64
SHA-256 checksum
How to use checksums
26c7e82574d0569f0672ae44f2a26fd62b01db8025d0fefe9a82206505e8af09
BLAKE2b-256 checksum
How to use checksums
3632bc2d84c454b80616b658abc22ddcac3b918e80123a99fe3bab97daf0c209
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.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL obdeect-0.7.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 215.8 kB
Tags CPython 3.14 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
1e75e0e942d9838e8e24c26a4e22074ac31f6e8669be834f5739b85097b15ad7
BLAKE2b-256 checksum
How to use checksums
7e1cc4a313b5f1c0d1c2593075847e713183a8617c0da457505433ad660ca63d
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.1-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL obdeect-0.7.1-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 206.1 kB
Tags CPython 3.14 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
eaea276452045f64e8bff6baf3bcecd1b2ca74a8b65d0d0a8d842f4c6a8acfb4
BLAKE2b-256 checksum
How to use checksums
06fd2518fe569affab11971e7d95c15249faf72521c4ea138f848c45fd99ecfd
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.1-cp314-cp314-macosx_13_0_arm64.whl

Download URL obdeect-0.7.1-cp314-cp314-macosx_13_0_arm64.whl
Size 195.6 kB
Tags CPython 3.14 macOS 13.0+ ARM64
SHA-256 checksum
How to use checksums
efe7cf5ae8a4a9f4b4de7668900dae5be303258809a38456e304a254ae86fe4d
BLAKE2b-256 checksum
How to use checksums
11d96dd30f29846ae79eab315481d02c34a5073fc9a7a84878ba19c352440fbe
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.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

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

Select from 6 files

Attestation for obdeect-0.7.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 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