obdeect 0.9.2__tar.gz → 0.10.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {obdeect-0.9.2 → obdeect-0.10.1}/.github/workflows/docs.yml +1 -1
- {obdeect-0.9.2 → obdeect-0.10.1}/.github/workflows/pypi.yml +3 -3
- {obdeect-0.9.2 → obdeect-0.10.1}/.github/workflows/tests.yml +9 -9
- {obdeect-0.9.2 → obdeect-0.10.1}/.pre-commit-config.yaml +3 -2
- {obdeect-0.9.2 → obdeect-0.10.1}/CHANGELOG.md +28 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/CITATION.cff +2 -2
- {obdeect-0.9.2 → obdeect-0.10.1}/PKG-INFO +5 -5
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/build_versions.py +13 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/ray-tracing/photon-stream.md +6 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/stream/command-line.md +10 -1
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/include/obdeect/propagation/extinction.hpp +2 -3
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/include/obdeect/propagation/pipeline.hpp +4 -6
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/include/obdeect/propagation/propagator.hpp +2 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/include/obdeect/propagation/scattering.hpp +4 -6
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/include/obdeect/propagation/sky.hpp +7 -3
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/tests/test_pipeline.cpp +63 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/tools/propagate.cpp +5 -2
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/python/tests/test_propagate.py +88 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/CMakeLists.txt +19 -2
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/cpp/include/obdeect/ray_tracing/json.hpp +10 -2
- obdeect-0.10.1/src/ray_tracing/cpp/include/obdeect/ray_tracing/model_hash.hpp +465 -0
- obdeect-0.10.1/src/ray_tracing/cpp/include/obdeect/ray_tracing/stream_trace.hpp +1235 -0
- obdeect-0.10.1/src/ray_tracing/cpp/tests/test_model_hash.cpp +69 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/cpp/tests/test_model_json.cpp +9 -0
- obdeect-0.10.1/src/ray_tracing/cpp/tools/trace_stream.cpp +249 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/python/obdeect/ray_tracing/cli.py +2 -1
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/python/obdeect/ray_tracing/stream.py +10 -5
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/python/tests/test_docs_versions.py +11 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/python/tests/test_stream.py +10 -0
- obdeect-0.10.1/src/ray_tracing/python/tests/test_stream_native.py +347 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/include/obdeect/stream/photons.hpp +31 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/include/obdeect/stream/simtel.hpp +19 -9
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/tests/test_simtel.cpp +71 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/tools/ps2simtel.cpp +6 -1
- {obdeect-0.9.2 → obdeect-0.10.1}/.clang-format +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/.clang-tidy +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/.gitattributes +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/.github/dependabot.yml +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/.github/workflows/changelog.yml +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/.github/workflows/ci.yml +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/.gitignore +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/AGENTS.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/CMakeLists.txt +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/CMakePresets.json +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/LICENSE +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/README.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/_static/figures/baffle_area.png +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/_static/figures/mst_shadowing.png +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/_static/figures/telescope_lst.png +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/_static/figures/telescope_mst_flashcam.png +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/_static/figures/telescope_mst_nectarcam.png +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/_static/figures/telescope_sct.png +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/_static/figures/telescope_sst.png +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/_static/figures/telescopes-provenance.json +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/_static/figures/validation_psf_area.png +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/_static/images/obdeect_21ratio_large.jpg +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/_static/images/obdeect_21ratio_small.jpg +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/_static/images/obdeect_large.jpg +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/_static/images/obdeect_logo.jpg +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/_static/images/obdeect_small.jpg +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/_static/obdeect.css +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/changelog.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/changes/.gitkeep +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/conf.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/figures/make_figures.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/figures/telescopes.yml +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/index.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/propagation/curvature.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/propagation/extinction.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/propagation/index.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/propagation/legacy-tables.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/propagation/propagation.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/propagation/refraction.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/propagation/scattering.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/ray-tracing/VALIDATION.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/ray-tracing/air-shower-photons.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/ray-tracing/analysis-v0.7.2.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/ray-tracing/api.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/ray-tracing/batch-tracing.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/ray-tracing/index.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/ray-tracing/light-sources.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/ray-tracing/limitations.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/ray-tracing/optical-elements.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/ray-tracing/optical-models.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/ray-tracing/optics.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/ray-tracing/python-guide.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/ray-tracing/shadowing.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/ray-tracing/telescopes.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/ray-tracing/usage.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/sources/index.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/sources/programs/beam-scan.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/sources/programs/flasher.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/sources/programs/laser-beam.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/sources/programs/led.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/sources/programs/muon-track.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/sources/programs/night-sky.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/sources/programs/point-source.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/sources/sources.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/sources/spec/background.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/sources/spec/cli-conventions.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/sources/spec/conventions.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/sources/spec/distributions.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/sources/spec/index.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/sources/spec/python-api.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/sources/spec/sky-sources.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/sources/spec/source-core.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/sources/spec/stream-writer.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/sources/spec/tool-beam-scan.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/sources/spec/tool-flasher.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/sources/spec/tool-laser-beam.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/sources/spec/tool-led.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/sources/spec/tool-muon-track.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/sources/spec/tool-night-sky.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/sources/spec/tool-point-source.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/sources/spec/track.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/stream/efficiency-status.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/stream/format.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/stream/grisu.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/stream/index.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/stream/programming.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/stream/random-numbers.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/test_release_metadata.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/user-guide/index.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/user-guide/installation.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/user-guide/pipelines.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/docs/user-guide/quickstart.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/pyproject.toml +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/CMakeLists.txt +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/README.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/bindings/core.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/bindings/extinction_bindings.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/bindings/profile_bindings.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/bindings/propagator_bindings.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/bindings/scattering_bindings.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/include/obdeect/propagation/curved_refraction.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/include/obdeect/propagation/parallel.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/include/obdeect/propagation/profile.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/include/obdeect/propagation/refraction.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/include/obdeect/propagation/streams.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/include/obdeect/propagation/thinning.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/include/obdeect/propagation/timing.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/include/obdeect/propagation/transmission.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/include/obdeect/propagation/version.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/include/obdeect/propagation/wavelength.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/tests/data/atm_trans_2000_1_10_0_0_2000.dat +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/tests/data/atmprof_ecmwf_north_winter_fixed.dat +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/tests/data/scattering_exponential.dat +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/tests/test_curvature.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/tests/test_curvature_modes.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/tests/test_curved_refraction.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/tests/test_physics.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/tests/test_profile.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/tests/test_propagator.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/tests/test_refraction.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/tests/test_scattering.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/tests/test_stream_contract.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/tests/test_telescopes.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/tests/test_thinning.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/tests/test_timing.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/tests/test_transmission.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/tests/test_version.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/pyproject.toml +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/python/obdeect/propagation/__init__.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/python/obdeect/propagation/cli.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/python/obdeect/propagation/convert.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/python/obdeect/propagation/extinction.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/python/obdeect/propagation/profile.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/python/obdeect/propagation/propagation.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/python/obdeect/propagation/scattering.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/python/tests/test_convert.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/python/tests/test_extinction.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/python/tests/test_import.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/python/tests/test_profile.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/python/tests/test_scattering.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/python/tests/test_stream_contract.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/README.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/cpp/bench/bench_trace.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/cpp/bench/replay.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/cpp/bench/replay_compare.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/cpp/bindings/README.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/cpp/bindings/core.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/cpp/include/obdeect/ray_tracing/bounds.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/cpp/include/obdeect/ray_tracing/bunches.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/cpp/include/obdeect/ray_tracing/model.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/cpp/include/obdeect/ray_tracing/model_json.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/cpp/include/obdeect/ray_tracing/obscurers.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/cpp/include/obdeect/ray_tracing/random.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/cpp/include/obdeect/ray_tracing/source.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/cpp/include/obdeect/ray_tracing/surfaces.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/cpp/include/obdeect/ray_tracing/table.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/cpp/include/obdeect/ray_tracing/trace.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/cpp/include/obdeect/ray_tracing/vec.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/cpp/tests/data/make_polynomial_reference.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/cpp/tests/legacy_asphere.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/cpp/tests/test_asphere_steps.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/cpp/tests/test_bounds.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/cpp/tests/test_kernels.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/cpp/tests/test_replay_compare.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/cpp/tests/test_trace.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/pyproject.toml +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/python/obdeect/ray_tracing/__init__.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/python/obdeect/ray_tracing/compiler.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/python/obdeect/ray_tracing/formats.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/python/obdeect/ray_tracing/model.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/python/obdeect/ray_tracing/plot.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/python/obdeect/ray_tracing/propagation.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/python/obdeect/ray_tracing/psf.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/python/obdeect/ray_tracing/repository.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/python/obdeect/ray_tracing/simtel_tables.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/python/tests/telescopes.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/python/tests/test_axes_offset.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/python/tests/test_bunches.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/python/tests/test_compiler.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/python/tests/test_formats.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/python/tests/test_model.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/python/tests/test_propagation.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/ray_tracing/python/tests/test_release_metadata.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/CMakeLists.txt +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/README.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/bindings/core.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/include/obdeect/sources/background.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/include/obdeect/sources/cli.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/include/obdeect/sources/density.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/include/obdeect/sources/emission_stream.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/include/obdeect/sources/programs/beam-scan.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/include/obdeect/sources/programs/flasher.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/include/obdeect/sources/programs/laser-beam.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/include/obdeect/sources/programs/led.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/include/obdeect/sources/programs/muon-track.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/include/obdeect/sources/programs/night-sky.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/include/obdeect/sources/programs/point-source.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/include/obdeect/sources/programs/stream_output.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/include/obdeect/sources/sky_sources.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/include/obdeect/sources/source.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/include/obdeect/sources/streams.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/include/obdeect/sources/track.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/include/obdeect/sources/vec3.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/include/obdeect/sources/version.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/tests/program_stream.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/tests/sky_stream_check.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/tests/test_beam-scan.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/tests/test_density.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/tests/test_flasher.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/tests/test_laser-beam.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/tests/test_led.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/tests/test_muon-track.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/tests/test_night-sky.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/tests/test_point-source.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/tests/test_sky_args.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/tests/test_source.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/tests/test_stream_contract.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/tests/test_version.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/tools/beam-scan.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/tools/flasher.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/tools/laser-beam.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/tools/led.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/tools/muon-track.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/tools/night-sky.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/tools/point-source.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/tools/sky_args.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/tools/telpos_file.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/cpp/tools/tool_args.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/pyproject.toml +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/python/obdeect/sources/__init__.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/python/obdeect/sources/cli.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/python/obdeect/sources/plot.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/python/obdeect/sources/source.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/python/tests/test_core_arity.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/python/tests/test_import.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/python/tests/test_plot.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/python/tests/test_source.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/sources/python/tests/test_stream_contract.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/CMakeLists.txt +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/README.md +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cmake/obdeect_stream-config.cmake.in +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cmake/version.hpp.in +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/bench/bench_stream.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/bench/gen_corsika.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/bindings/core.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/capi/obdeect_stream_c.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/include/obdeect/stream/atmprof.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/include/obdeect/stream/cli.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/include/obdeect/stream/constants.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/include/obdeect/stream/corsika.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/include/obdeect/stream/eventio.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/include/obdeect/stream/format.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/include/obdeect/stream/grisu.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/include/obdeect/stream/obdeect_stream.h +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/include/obdeect/stream/parse.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/include/obdeect/stream/random.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/include/obdeect/stream/stages.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/include/obdeect/stream/stdin_buffer.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/include/obdeect/stream/stream.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/include/obdeect/stream/telpos.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/include/obdeect/stream/vec3.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/include/obdeect/stream/wavelength.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/tests/check.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/tests/consumer/CMakeLists.txt +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/tests/consumer/main.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/tests/consumer/main_c.c +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/tests/data/conformance/bad_magic.pst +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/tests/data/conformance/expected.json +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/tests/data/conformance/make_conformance.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/tests/data/conformance/too_many_rows.pst +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/tests/data/conformance/truncated_chunk.pst +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/tests/data/conformance/unknown_major.pst +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/tests/data/conformance/valid.pst +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/tests/test_capi.c +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/tests/test_capi_cpp.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/tests/test_cli.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/tests/test_corsika.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/tests/test_eventio.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/tests/test_format.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/tests/test_grisu.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/tests/test_parse.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/tests/test_stages.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/tests/test_stream.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/tests/test_version.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/tests/test_wavelength.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/tools/corsika2ps.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/tools/ps2grisu.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/tools/ps_cat.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/tools/ps_tee.cpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/cpp/tools/tool_version.hpp +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/pyproject.toml +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/python/obdeect/stream/__init__.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/python/obdeect/stream/__main__.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/python/obdeect/stream/_package.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/python/obdeect/stream/cli.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/python/obdeect/stream/convert.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/python/obdeect/stream/stage.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/python/obdeect/stream/stream.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/python/tests/test_cli.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/python/tests/test_cmake_package.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/python/tests/test_constants.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/python/tests/test_convert.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/python/tests/test_grisu.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/python/tests/test_import.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/python/tests/test_stage.py +0 -0
- {obdeect-0.9.2 → obdeect-0.10.1}/src/stream/python/tests/test_stream.py +0 -0
|
@@ -29,7 +29,7 @@ jobs:
|
|
|
29
29
|
fail-fast: false
|
|
30
30
|
matrix:
|
|
31
31
|
# Pull requests: one platform (the tests cover the others); releases: all.
|
|
32
|
-
os: ${{ github.event_name == 'pull_request' && fromJSON('["ubuntu-
|
|
32
|
+
os: ${{ github.event_name == 'pull_request' && fromJSON('["ubuntu-26.04"]') || fromJSON('["ubuntu-26.04", "ubuntu-26.04-arm", "macos-15"]') }}
|
|
33
33
|
component: [stream, propagation, sources, ray_tracing]
|
|
34
34
|
runs-on: ${{ matrix.os }}
|
|
35
35
|
steps:
|
|
@@ -106,7 +106,7 @@ jobs:
|
|
|
106
106
|
fail-fast: false
|
|
107
107
|
matrix:
|
|
108
108
|
project: [obdeect-stream, obdeect-propagation, obdeect-sources, obdeect-ray-tracing]
|
|
109
|
-
runs-on: ubuntu-
|
|
109
|
+
runs-on: ubuntu-26.04
|
|
110
110
|
environment: pypi-${{ matrix.project }}
|
|
111
111
|
permissions:
|
|
112
112
|
id-token: write
|
|
@@ -128,7 +128,7 @@ jobs:
|
|
|
128
128
|
# The obdeect package requires all components: publish it after them.
|
|
129
129
|
publish-obdeect:
|
|
130
130
|
needs: publish
|
|
131
|
-
runs-on: ubuntu-
|
|
131
|
+
runs-on: ubuntu-26.04
|
|
132
132
|
environment: pypi-obdeect
|
|
133
133
|
permissions:
|
|
134
134
|
id-token: write
|
|
@@ -20,7 +20,7 @@ jobs:
|
|
|
20
20
|
strategy:
|
|
21
21
|
fail-fast: false
|
|
22
22
|
matrix:
|
|
23
|
-
runner: [ubuntu-
|
|
23
|
+
runner: [ubuntu-26.04, ubuntu-26.04-arm, macos-15]
|
|
24
24
|
runs-on: ${{ matrix.runner }}
|
|
25
25
|
steps:
|
|
26
26
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
@@ -29,7 +29,7 @@ jobs:
|
|
|
29
29
|
- name: Configure and build all components
|
|
30
30
|
run: >-
|
|
31
31
|
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
|
|
32
|
-
&& cmake --build build --parallel
|
|
32
|
+
&& cmake --build build --parallel 4
|
|
33
33
|
- name: Run native tests
|
|
34
34
|
run: ctest --test-dir build --output-on-failure --parallel 4
|
|
35
35
|
|
|
@@ -40,10 +40,10 @@ jobs:
|
|
|
40
40
|
fail-fast: false
|
|
41
41
|
matrix:
|
|
42
42
|
include:
|
|
43
|
-
- {runner: ubuntu-
|
|
44
|
-
- {runner: ubuntu-
|
|
43
|
+
- {runner: ubuntu-26.04, python-version: '3.14'}
|
|
44
|
+
- {runner: ubuntu-26.04-arm, python-version: '3.14'}
|
|
45
45
|
- {runner: macos-15, python-version: '3.14'}
|
|
46
|
-
- {runner: ubuntu-
|
|
46
|
+
- {runner: ubuntu-26.04, python-version: '3.15'}
|
|
47
47
|
runs-on: ${{ matrix.runner }}
|
|
48
48
|
steps:
|
|
49
49
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
@@ -88,7 +88,7 @@ jobs:
|
|
|
88
88
|
fail-fast: false
|
|
89
89
|
matrix:
|
|
90
90
|
component: [stream, propagation, sources, ray_tracing]
|
|
91
|
-
runs-on: ubuntu-
|
|
91
|
+
runs-on: ubuntu-26.04
|
|
92
92
|
steps:
|
|
93
93
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
94
94
|
with:
|
|
@@ -109,7 +109,7 @@ jobs:
|
|
|
109
109
|
|
|
110
110
|
# Ray tracing only: the only component with an FMA option and with threads.
|
|
111
111
|
fma:
|
|
112
|
-
runs-on: ubuntu-
|
|
112
|
+
runs-on: ubuntu-26.04
|
|
113
113
|
steps:
|
|
114
114
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
115
115
|
with:
|
|
@@ -121,7 +121,7 @@ jobs:
|
|
|
121
121
|
&& cmake --build build-fma --parallel
|
|
122
122
|
&& ctest --test-dir build-fma --output-on-failure
|
|
123
123
|
thread-sanitizer:
|
|
124
|
-
runs-on: ubuntu-
|
|
124
|
+
runs-on: ubuntu-26.04
|
|
125
125
|
steps:
|
|
126
126
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
127
127
|
with:
|
|
@@ -135,7 +135,7 @@ jobs:
|
|
|
135
135
|
&& cmake --build build-tsan --parallel
|
|
136
136
|
&& ctest --test-dir build-tsan --output-on-failure
|
|
137
137
|
clang-tidy:
|
|
138
|
-
runs-on: ubuntu-
|
|
138
|
+
runs-on: ubuntu-26.04
|
|
139
139
|
steps:
|
|
140
140
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
141
141
|
with:
|
|
@@ -14,7 +14,7 @@ repos:
|
|
|
14
14
|
- id: end-of-file-fixer
|
|
15
15
|
- id: trailing-whitespace
|
|
16
16
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
17
|
-
rev: v0.17.
|
|
17
|
+
rev: v0.17.6
|
|
18
18
|
hooks:
|
|
19
19
|
- id: ruff-check
|
|
20
20
|
args: [--fix]
|
|
@@ -24,9 +24,10 @@ repos:
|
|
|
24
24
|
rev: v1.7.12
|
|
25
25
|
hooks:
|
|
26
26
|
- id: actionlint
|
|
27
|
+
args: ["-ignore", "label \"ubuntu-26.04\" is unknown", "-ignore", "label \"ubuntu-26.04-arm\" is unknown"]
|
|
27
28
|
# https://pyproject-fmt.readthedocs.io/en/latest/
|
|
28
29
|
- repo: https://github.com/tox-dev/pyproject-fmt
|
|
29
|
-
rev: "v2.
|
|
30
|
+
rev: "v2.31.2"
|
|
30
31
|
hooks:
|
|
31
32
|
- id: pyproject-fmt
|
|
32
33
|
args: ["--max-supported-python", "3.15"]
|
|
@@ -4,6 +4,34 @@ All components are released together with one version (tags `vX.Y.Z`); the secti
|
|
|
4
4
|
|
|
5
5
|
<!-- towncrier release notes start -->
|
|
6
6
|
|
|
7
|
+
## [v0.10.1] - 2026-11-20
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- Accept near-horizontal photon directions whose float32 cosines round to cx^2 + cy^2 slightly above 1 in propagation. (#74)
|
|
12
|
+
- Fix building of documentation in CI for legacy obdeect versions. (#75)
|
|
13
|
+
|
|
14
|
+
### Maintenance
|
|
15
|
+
|
|
16
|
+
- Switch CI runners from ubuntu 24.04 to 26.04. (#73)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## [v0.10.0] - 2026-11-20
|
|
20
|
+
|
|
21
|
+
### Added
|
|
22
|
+
|
|
23
|
+
- `obdeect ray-tracing trace-stream` is a native program, like the other stream stages: no Python or NumPy start-up per call, and the photon loop around the tracer runs in C++. Same options and the same output stream, bit for bit, as the Python `trace_stream` (checked by `test_stream_native.py`). (#67)
|
|
24
|
+
- `obdeect stream to-simtel --keep-telpos-height` keeps the TELPOS height of camera-map telescopes (default: z set to 0), for array runs where sim_telarray needs the real heights. (#69)
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
|
|
28
|
+
- The `cz` column check of photon streams compares `cz` with `-sqrt(1 - cx^2 - cy^2)` in the squared form `cz^2` against `1 - cx^2 - cy^2`. Photons with near-horizontal directions (|cz| below about 1e-3) that a float32 stream stores as a unit vector are no longer rejected by the propagation, sources and ray-tracing stages ("cz column does not match cx, cy"). The check still requires `cz < 0`, and a clearly wrong `cz` is still rejected. (#71)
|
|
29
|
+
|
|
30
|
+
### Maintenance
|
|
31
|
+
|
|
32
|
+
- Introduce custom `StdinBuffer` to address performance issues when reading from `std::cin`. (#70)
|
|
33
|
+
|
|
34
|
+
|
|
7
35
|
## [v0.9.2] - 2026-11-16
|
|
8
36
|
|
|
9
37
|
### Fixed
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
cff-version: 1.2.0
|
|
2
2
|
message: "If you use obdeect, please cite it using the metadata below."
|
|
3
3
|
title: "obdeect: Photon streams, atmospheric propagation, light sources and ray tracing for imaging atmospheric Cherenkov telescopes"
|
|
4
|
-
version: 0.
|
|
5
|
-
date-released: 2026-11-
|
|
4
|
+
version: 0.10.1
|
|
5
|
+
date-released: 2026-11-20
|
|
6
6
|
license: BSD-3-Clause
|
|
7
7
|
type: software
|
|
8
8
|
repository-code: "https://github.com/gammasim/obdeect"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: obdeect
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.10.1
|
|
4
4
|
Summary: Cherenkov-telescope light simulation: all obdeect components
|
|
5
5
|
Author: obdeect contributors
|
|
6
6
|
License-Expression: BSD-3-Clause
|
|
@@ -10,10 +10,10 @@ Classifier: Programming Language :: Python :: 3 :: Only
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3.14
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.15
|
|
12
12
|
Requires-Python: >=3.14
|
|
13
|
-
Requires-Dist: obdeect-propagation==0.
|
|
14
|
-
Requires-Dist: obdeect-ray-tracing==0.
|
|
15
|
-
Requires-Dist: obdeect-sources==0.
|
|
16
|
-
Requires-Dist: obdeect-stream==0.
|
|
13
|
+
Requires-Dist: obdeect-propagation==0.10.1
|
|
14
|
+
Requires-Dist: obdeect-ray-tracing==0.10.1
|
|
15
|
+
Requires-Dist: obdeect-sources==0.10.1
|
|
16
|
+
Requires-Dist: obdeect-stream==0.10.1
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
|
|
19
19
|
# obdeect
|
|
@@ -145,8 +145,21 @@ def package_paths(checkout):
|
|
|
145
145
|
return [str(path) for path in components] or [str(checkout)]
|
|
146
146
|
|
|
147
147
|
|
|
148
|
+
def prepare_legacy_binding(checkout):
|
|
149
|
+
"""Include Python before C++ headers in exported pre-v0.7.2 bindings."""
|
|
150
|
+
binding = Path(checkout) / "cpp/bindings/core.cpp"
|
|
151
|
+
if not binding.exists():
|
|
152
|
+
return
|
|
153
|
+
text = binding.read_text()
|
|
154
|
+
header = "#include <nanobind/nanobind.h>"
|
|
155
|
+
if header in text and text.index(header) > text.index("#include"):
|
|
156
|
+
text = text.replace(header + "\n", "", 1)
|
|
157
|
+
binding.write_text(header + "\n" + text)
|
|
158
|
+
|
|
159
|
+
|
|
148
160
|
def install_package(checkout, destination, version=None):
|
|
149
161
|
# --target keeps historical APIs separate from the development installation.
|
|
162
|
+
prepare_legacy_binding(checkout)
|
|
150
163
|
env = dict(os.environ)
|
|
151
164
|
if version is not None:
|
|
152
165
|
env["SETUPTOOLS_SCM_PRETEND_VERSION"] = version
|
|
@@ -17,6 +17,12 @@ loaded once. The photons of a telescope do not depend on the other telescopes tr
|
|
|
17
17
|
Records pass through; telescopes not listed in `--telescopes` are dropped. A summary (events,
|
|
18
18
|
photons in and out) goes to standard error. `-` (the default) is standard input or output.
|
|
19
19
|
|
|
20
|
+
The command runs a native program (`obdeect-ray-tracing-trace-stream`, C++), like the other
|
|
21
|
+
stream stages. It writes the same stream as the Python function
|
|
22
|
+
`obdeect.ray_tracing.stream.trace_stream`, bit for bit; only the version in the producer and
|
|
23
|
+
provenance strings can differ between a development build and the Python package. Like the
|
|
24
|
+
Python loader, it rejects a model file whose content does not match its `sha256`.
|
|
25
|
+
|
|
20
26
|
## Input frames
|
|
21
27
|
|
|
22
28
|
| Frame | Photons | Requirements |
|
|
@@ -40,6 +40,14 @@ Telescopes not listed are ground-frame (sim_telarray `Bypass_Optics=0`). Listed
|
|
|
40
40
|
camera-frame photons are converted to the bypass convention and need `Bypass_Optics=1` (class 1)
|
|
41
41
|
or `2` (class 2). `obdeect stream to-simtel` prints the value for each telescope.
|
|
42
42
|
|
|
43
|
+
TELPOS z of the listed telescopes is set to 0, because their photons are already at the camera.
|
|
44
|
+
For array runs, sim_telarray needs the real heights for the plane-wavefront delay between
|
|
45
|
+
telescopes; `--keep-telpos-height` writes the TELPOS block unchanged. Default: off.
|
|
46
|
+
|
|
47
|
+
```console
|
|
48
|
+
$ obdeect stream to-simtel --camera-map cam.txt --keep-telpos-height run.pst > sim.simtel
|
|
49
|
+
```
|
|
50
|
+
|
|
43
51
|
## ATMPROF and synthesised headers
|
|
44
52
|
|
|
45
53
|
`--atmprof FILE` reads a CORSIKA/sim_telarray atmospheric table (altitude [km], density, thickness,
|
|
@@ -72,7 +80,8 @@ bunch: x, y = 47.5, 20.0 cm cx, cy = 0.6, 0 time = 5.085 ns zem = 220050
|
|
|
72
80
|
The bunch position is where the photon's line crosses z = 0 (path 0.625 m here, also for a photon
|
|
73
81
|
moving away from the plane). The time is `t` plus that path over the speed of light; `zem` is the
|
|
74
82
|
observation level plus `z`. Without a `cz` column the photon moves towards the plane. The camera
|
|
75
|
-
rotation is not used, and TELPOS z is set to 0 as for camera-frame telescopes
|
|
83
|
+
rotation is not used, and TELPOS z is set to 0 as for camera-frame telescopes (unless
|
|
84
|
+
`--keep-telpos-height` is given).
|
|
76
85
|
|
|
77
86
|
```console
|
|
78
87
|
$ cat cam.txt
|
{obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/include/obdeect/propagation/extinction.hpp
RENAMED
|
@@ -45,7 +45,7 @@ inline void validate(const CurvedPath &path) {
|
|
|
45
45
|
// Plane-parallel airmass 1 / |cz| of a downward photon; unlimited_airmass for a horizontal one.
|
|
46
46
|
template <class T> [[nodiscard]] T airmass(T cx, T cy) {
|
|
47
47
|
const T cz2 = T(1) - cx * cx - cy * cy;
|
|
48
|
-
if (!std::isfinite(cz2) || cz2 < -T(
|
|
48
|
+
if (!std::isfinite(cz2) || cz2 < -static_cast<T>(obdeect::stream::direction_norm_tolerance)) {
|
|
49
49
|
throw std::invalid_argument("direction cosines must satisfy cx^2 + cy^2 <= 1");
|
|
50
50
|
}
|
|
51
51
|
return cz2 > T(0) ? T(1) / std::sqrt(cz2) : static_cast<T>(unlimited_airmass);
|
|
@@ -103,7 +103,6 @@ void atmospheric_acceptance_curved(const obdeect::stream::PhotonChunk &chunk,
|
|
|
103
103
|
const auto &cy = chunk[Column::cy];
|
|
104
104
|
const auto &zem = chunk[Column::zem];
|
|
105
105
|
const auto &wavelength = chunk[Column::wavelength];
|
|
106
|
-
const double eps = std::numeric_limits<double>::epsilon();
|
|
107
106
|
end = std::min(end, rows);
|
|
108
107
|
for (std::size_t row = begin; row < end; ++row) {
|
|
109
108
|
check_wavelength(static_cast<double>(wavelength[row]));
|
|
@@ -115,7 +114,7 @@ void atmospheric_acceptance_curved(const obdeect::stream::PhotonChunk &chunk,
|
|
|
115
114
|
const double x = static_cast<double>(cx[row]);
|
|
116
115
|
const double y = static_cast<double>(cy[row]);
|
|
117
116
|
const double cz2 = 1.0 - x * x - y * y;
|
|
118
|
-
if (!std::isfinite(cz2) || cz2 < -
|
|
117
|
+
if (!std::isfinite(cz2) || cz2 < -obdeect::stream::direction_norm_tolerance) {
|
|
119
118
|
throw std::invalid_argument("direction cosines must satisfy cx^2 + cy^2 <= 1");
|
|
120
119
|
}
|
|
121
120
|
// -(d . n) with d = (x, y, -sqrt(1 - x^2 - y^2)).
|
{obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/include/obdeect/propagation/pipeline.hpp
RENAMED
|
@@ -65,16 +65,14 @@ inline void validate_ground_chunk(obdeect::stream::PhotonChunk &chunk, bool need
|
|
|
65
65
|
const auto &cy = chunk[Column::cy];
|
|
66
66
|
const auto &w = chunk[Column::w];
|
|
67
67
|
for (std::size_t row = 0; row < rows; ++row) {
|
|
68
|
-
|
|
69
|
-
static_cast<double>(cx[row]) * cx[row] + static_cast<double>(cy[row]) * cy[row];
|
|
70
|
-
if (!(r2 <= 1.0)) {
|
|
68
|
+
if (!obdeect::stream::direction_in_unit_disc(cx[row], cy[row])) {
|
|
71
69
|
throw std::invalid_argument("direction cosines must satisfy cx^2 + cy^2 <= 1");
|
|
72
70
|
}
|
|
73
71
|
if (chunk.has(Column::cz)) {
|
|
74
|
-
const double cz = -std::sqrt(1.0 - r2);
|
|
75
72
|
const auto cz_given = static_cast<double>(chunk[Column::cz][row]);
|
|
76
|
-
// NaN
|
|
77
|
-
if (!std::isfinite(cz_given) ||
|
|
73
|
+
// cz_matches_direction is false for NaN; the finiteness test is kept as the first check.
|
|
74
|
+
if (!std::isfinite(cz_given) ||
|
|
75
|
+
!obdeect::stream::cz_matches_direction(cz_given, cx[row], cy[row])) {
|
|
78
76
|
throw std::invalid_argument(
|
|
79
77
|
"cz column must be finite and match cx, cy (cz = -sqrt(1-cx^2-cy^2))");
|
|
80
78
|
}
|
{obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/include/obdeect/propagation/propagator.hpp
RENAMED
|
@@ -950,6 +950,8 @@ private:
|
|
|
950
950
|
if (!(cz[row] < 0.0F)) {
|
|
951
951
|
out[Column::w][row] = 0.0F;
|
|
952
952
|
}
|
|
953
|
+
// The cz column is dropped below; cx, cy carry the direction of the scattering.
|
|
954
|
+
obdeect::stream::snap_direction_to_cz(out[Column::cx][row], out[Column::cy][row], cz[row]);
|
|
953
955
|
}
|
|
954
956
|
}
|
|
955
957
|
return out;
|
{obdeect-0.9.2 → obdeect-0.10.1}/src/propagation/cpp/include/obdeect/propagation/scattering.hpp
RENAMED
|
@@ -547,16 +547,14 @@ inline void scatter_chunk(const ScatteringConfig &config, const ScatteringTable
|
|
|
547
547
|
const auto &w = chunk[Column::w];
|
|
548
548
|
const auto &wavelength = chunk[Column::wavelength];
|
|
549
549
|
for (std::size_t row = 0; row < rows; ++row) {
|
|
550
|
-
|
|
551
|
-
static_cast<double>(cx[row]) * cx[row] + static_cast<double>(cy[row]) * cy[row];
|
|
552
|
-
if (!(r2 <= 1.0)) {
|
|
550
|
+
if (!obdeect::stream::direction_in_unit_disc(cx[row], cy[row])) {
|
|
553
551
|
throw std::invalid_argument("direction cosines must satisfy cx^2 + cy^2 <= 1");
|
|
554
552
|
}
|
|
555
|
-
|
|
556
|
-
// Finite first: a NaN makes the comparison false and would pass the check.
|
|
553
|
+
// cz_matches_direction is false for NaN; the finiteness test is kept as the first check.
|
|
557
554
|
if (chunk.has(Column::cz)) {
|
|
558
555
|
const double cz_column = chunk[Column::cz][row];
|
|
559
|
-
if (!std::isfinite(cz_column) ||
|
|
556
|
+
if (!std::isfinite(cz_column) ||
|
|
557
|
+
!obdeect::stream::cz_matches_direction(cz_column, cx[row], cy[row])) {
|
|
560
558
|
throw std::invalid_argument("cz column must be finite and match cx, cy "
|
|
561
559
|
"(cz = -sqrt(1-cx^2-cy^2))");
|
|
562
560
|
}
|
|
@@ -256,10 +256,14 @@ inline std::uint64_t sky_to_ground(obdeect::stream::PhotonChunk &chunk, const Sk
|
|
|
256
256
|
const double dx = cx[row];
|
|
257
257
|
const double dy = cy[row];
|
|
258
258
|
const double r2 = dx * dx + dy * dy;
|
|
259
|
-
if (!(
|
|
259
|
+
if (!obdeect::stream::direction_in_unit_disc(dx, dy)) {
|
|
260
260
|
throw std::invalid_argument("direction cosines must satisfy cx^2 + cy^2 <= 1");
|
|
261
261
|
}
|
|
262
|
-
|
|
262
|
+
double cz_magnitude = std::sqrt(std::max(0.0, 1.0 - r2));
|
|
263
|
+
if (has_cz && cz_magnitude == 0.0 && cz_column[row] < 0.0) {
|
|
264
|
+
// cx^2 + cy^2 rounded above 1: the validated cz column gives the magnitude.
|
|
265
|
+
cz_magnitude = -cz_column[row];
|
|
266
|
+
}
|
|
263
267
|
const double emission_z = z[row];
|
|
264
268
|
if (!std::isfinite(x[row]) || !std::isfinite(y[row]) || !std::isfinite(emission_z) ||
|
|
265
269
|
!std::isfinite(t[row])) {
|
|
@@ -273,7 +277,7 @@ inline std::uint64_t sky_to_ground(obdeect::stream::PhotonChunk &chunk, const Sk
|
|
|
273
277
|
}
|
|
274
278
|
if (cz >= 0.0) {
|
|
275
279
|
reaches = false; // moving upwards or horizontally
|
|
276
|
-
} else if (
|
|
280
|
+
} else if (!obdeect::stream::cz_matches_direction(cz, dx, dy)) {
|
|
277
281
|
throw std::invalid_argument("cz column does not match cx, cy (cz = -sqrt(1-cx^2-cy^2))");
|
|
278
282
|
}
|
|
279
283
|
}
|
|
@@ -103,6 +103,66 @@ void test_cz_column_must_be_finite() {
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
+
// Near-horizontal float32 directions: cz rounds to a unit vector with cx and cy, but an absolute
|
|
107
|
+
// difference of cz from -sqrt(1 - cx^2 - cy^2) exceeds 1e-5 (the error is about 1e-7 / |cz|).
|
|
108
|
+
// Such photons are valid; a clearly wrong cz is still rejected.
|
|
109
|
+
void test_near_horizontal_direction_accepted() {
|
|
110
|
+
const auto table = constant_table();
|
|
111
|
+
const auto depths = table.telescope_depths(2030.0, 28.0);
|
|
112
|
+
const obdeect::propagation::Envelope envelope({200.0, 800.0}, {0.9, 0.3});
|
|
113
|
+
const auto settings = settings_for(table, depths, envelope, true);
|
|
114
|
+
|
|
115
|
+
auto chunk = photons(1, 400.0F);
|
|
116
|
+
chunk[Column::cx][0] = 0.989117742F;
|
|
117
|
+
chunk[Column::cy][0] = -0.147124648F;
|
|
118
|
+
chunk[Column::cz].assign(1, -0.000614837F);
|
|
119
|
+
CHECK(!throws_invalid(
|
|
120
|
+
[&] { (void)obdeect::propagation::apply_extinction_chunk(chunk, settings, 0); }));
|
|
121
|
+
|
|
122
|
+
chunk[Column::cz][0] = -0.05F;
|
|
123
|
+
CHECK(throws_invalid(
|
|
124
|
+
[&] { (void)obdeect::propagation::apply_extinction_chunk(chunk, settings, 0); }));
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// A float32 direction with cx^2 + cy^2 slightly above 1 (rounding of a horizontal photon) is
|
|
128
|
+
// valid; a direction clearly outside the unit disc is rejected.
|
|
129
|
+
void test_direction_rounding_outside_unit_disc_accepted() {
|
|
130
|
+
const auto table = constant_table();
|
|
131
|
+
const auto depths = table.telescope_depths(2030.0, 28.0);
|
|
132
|
+
const obdeect::propagation::Envelope envelope({200.0, 800.0}, {0.9, 0.3});
|
|
133
|
+
const auto settings = settings_for(table, depths, envelope, true);
|
|
134
|
+
|
|
135
|
+
auto chunk = photons(1, 400.0F);
|
|
136
|
+
chunk[Column::cx][0] = 1.0000001F;
|
|
137
|
+
chunk[Column::cy][0] = 0.0F;
|
|
138
|
+
CHECK(!throws_invalid(
|
|
139
|
+
[&] { (void)obdeect::propagation::apply_extinction_chunk(chunk, settings, 0); }));
|
|
140
|
+
|
|
141
|
+
chunk[Column::cx][0] = 1.001F;
|
|
142
|
+
CHECK(throws_invalid(
|
|
143
|
+
[&] { (void)obdeect::propagation::apply_extinction_chunk(chunk, settings, 0); }));
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// A rounded over-unit direction takes the magnitude of its validated cz: cx^2 + cy^2 becomes
|
|
147
|
+
// 1 - cz^2. Directions inside the unit disc, and upwards ones, are left unchanged.
|
|
148
|
+
void test_snap_direction_to_cz() {
|
|
149
|
+
float cx = 1.0000001F;
|
|
150
|
+
float cy = 0.0F;
|
|
151
|
+
obdeect::stream::snap_direction_to_cz(cx, cy, -0.0001);
|
|
152
|
+
CHECK_NEAR(static_cast<double>(cx) * cx + static_cast<double>(cy) * cy, 1.0 - 1e-8, 1e-6);
|
|
153
|
+
CHECK(cx > 0.0F && cy == 0.0F);
|
|
154
|
+
|
|
155
|
+
float cx_in = 0.5F;
|
|
156
|
+
float cy_in = 0.5F;
|
|
157
|
+
obdeect::stream::snap_direction_to_cz(cx_in, cy_in, -0.7);
|
|
158
|
+
CHECK(cx_in == 0.5F && cy_in == 0.5F);
|
|
159
|
+
|
|
160
|
+
float cx_up = 1.0000001F;
|
|
161
|
+
float cy_up = 0.0F;
|
|
162
|
+
obdeect::stream::snap_direction_to_cz(cx_up, cy_up, 0.0001);
|
|
163
|
+
CHECK(cx_up == 1.0000001F && cy_up == 0.0F);
|
|
164
|
+
}
|
|
165
|
+
|
|
106
166
|
// Wavelengths are finite and non-negative (0 means not assigned). NaN, inf and negative values
|
|
107
167
|
// are rejected before any conversion to int.
|
|
108
168
|
void test_wavelength_must_be_finite() {
|
|
@@ -228,6 +288,9 @@ int main() {
|
|
|
228
288
|
return run_checks([] {
|
|
229
289
|
test_threads_do_not_change_output();
|
|
230
290
|
test_cz_column_must_be_finite();
|
|
291
|
+
test_near_horizontal_direction_accepted();
|
|
292
|
+
test_direction_rounding_outside_unit_disc_accepted();
|
|
293
|
+
test_snap_direction_to_cz();
|
|
231
294
|
test_wavelength_must_be_finite();
|
|
232
295
|
test_wavelength_above_max_is_dropped();
|
|
233
296
|
test_atmospheric_acceptance_wavelength();
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
#include "obdeect/propagation/propagator.hpp"
|
|
6
6
|
#include "obdeect/stream/cli.hpp"
|
|
7
7
|
#include "obdeect/stream/parse.hpp"
|
|
8
|
+
#include "obdeect/stream/stdin_buffer.hpp"
|
|
8
9
|
|
|
9
10
|
using namespace obdeect::propagation;
|
|
10
11
|
|
|
@@ -311,8 +312,10 @@ int main(int argc, char **argv) {
|
|
|
311
312
|
throw std::runtime_error("cannot open output stream: " + output);
|
|
312
313
|
}
|
|
313
314
|
}
|
|
314
|
-
std::
|
|
315
|
-
|
|
315
|
+
// std::cin is read one character at a time by libc++ once sync_with_stdio is off.
|
|
316
|
+
obdeect::stream::StdinBuffer stdin_buffer;
|
|
317
|
+
std::istream stdin_stream(&stdin_buffer);
|
|
318
|
+
std::istream &in = input == "-" ? stdin_stream : static_cast<std::istream &>(in_file);
|
|
316
319
|
std::ostream &out = output == "-" ? static_cast<std::ostream &>(std::cout)
|
|
317
320
|
: static_cast<std::ostream &>(out_file);
|
|
318
321
|
const PropagationSummary summary = propagate_stream(in, out, std::move(config));
|
|
@@ -226,6 +226,32 @@ def test_executable_matches_api(tmp_path, envelope_files):
|
|
|
226
226
|
assert cli_out.read_bytes() == api_out.read_bytes()
|
|
227
227
|
|
|
228
228
|
|
|
229
|
+
def test_executable_stdin_matches_file_input(tmp_path):
|
|
230
|
+
source = tmp_path / "in.pst"
|
|
231
|
+
source.write_bytes(ground_stream(5000, seed=2, chunk_rows=2048))
|
|
232
|
+
command = [
|
|
233
|
+
_executable(),
|
|
234
|
+
"--transmission",
|
|
235
|
+
str(TABLE_PATH),
|
|
236
|
+
"--site-altitude",
|
|
237
|
+
str(SITE_M),
|
|
238
|
+
"--seed",
|
|
239
|
+
"7",
|
|
240
|
+
"-i",
|
|
241
|
+
]
|
|
242
|
+
file_result = subprocess.run(
|
|
243
|
+
[*command, str(source), "-o", "-"], capture_output=True, check=False
|
|
244
|
+
)
|
|
245
|
+
stdin_result = subprocess.run(
|
|
246
|
+
[*command, "-", "-o", "-"], input=source.read_bytes(), capture_output=True, check=False
|
|
247
|
+
)
|
|
248
|
+
assert file_result.returncode == 0, file_result.stderr
|
|
249
|
+
assert stdin_result.returncode == 0, stdin_result.stderr
|
|
250
|
+
assert b"photons in 10000" in stdin_result.stderr
|
|
251
|
+
assert stdin_result.stderr == file_result.stderr
|
|
252
|
+
assert stdin_result.stdout == file_result.stdout
|
|
253
|
+
|
|
254
|
+
|
|
229
255
|
SCATTERING_TABLE = DATA / "scattering_exponential.dat"
|
|
230
256
|
SCATTER_TELESCOPES = [(1, 3000.0, 0.0, 0.0, 12.0), (2, 0.0, -2500.0, 0.0, 12.0)]
|
|
231
257
|
|
|
@@ -669,6 +695,68 @@ def sky_stream(n, seed, curvature_applied=None):
|
|
|
669
695
|
return writer.getvalue()
|
|
670
696
|
|
|
671
697
|
|
|
698
|
+
# Float32 directions (cx, cy, cz) of photons with |cz| between 6e-4 and 2e-3. Each is a unit
|
|
699
|
+
# vector to float32 precision; an absolute check on cz rejected them. The last one has
|
|
700
|
+
# cx^2 + cy^2 rounded above 1.
|
|
701
|
+
NEAR_HORIZONTAL_DIRECTIONS = (
|
|
702
|
+
(0.960585952, 0.277977228, -0.001825427),
|
|
703
|
+
(0.946776211, -0.321888804, -0.001533536),
|
|
704
|
+
(0.999714673, 0.023859283, -0.001124879),
|
|
705
|
+
(0.989117742, -0.147124648, -0.000614837),
|
|
706
|
+
(0.975054383, -0.221962571, -0.001266957),
|
|
707
|
+
(1.0000001192, 0.0, -0.0001),
|
|
708
|
+
)
|
|
709
|
+
|
|
710
|
+
|
|
711
|
+
def near_horizontal_stream():
|
|
712
|
+
"""Sky-frame photons on telescope 1 with the directions of NEAR_HORIZONTAL_DIRECTIONS."""
|
|
713
|
+
cx, cy, cz = (np.array(column, dtype=np.float32) for column in zip(*NEAR_HORIZONTAL_DIRECTIONS))
|
|
714
|
+
n = len(cx)
|
|
715
|
+
rng = np.random.default_rng(11)
|
|
716
|
+
writer = StreamWriter()
|
|
717
|
+
writer.metadata(
|
|
718
|
+
"run",
|
|
719
|
+
{
|
|
720
|
+
"run_number": 1,
|
|
721
|
+
"observation_level_m": SITE_M,
|
|
722
|
+
"telescope_x_m": [0.0],
|
|
723
|
+
"telescope_y_m": [0.0],
|
|
724
|
+
"telescope_z_m": [0.0],
|
|
725
|
+
"refraction_applied": 0,
|
|
726
|
+
"wavelength_min_nm": 250.0,
|
|
727
|
+
"wavelength_max_nm": 700.0,
|
|
728
|
+
},
|
|
729
|
+
)
|
|
730
|
+
writer.metadata("event", {"event_number": 1})
|
|
731
|
+
writer.metadata("telescope", {"telescope_id": 1, "frame": 0})
|
|
732
|
+
columns = {
|
|
733
|
+
"x": rng.uniform(-3000, 3000, n),
|
|
734
|
+
"y": rng.uniform(-3000, 3000, n),
|
|
735
|
+
"z": rng.uniform(3000, 15000, n),
|
|
736
|
+
"cx": cx,
|
|
737
|
+
"cy": cy,
|
|
738
|
+
"cz": cz,
|
|
739
|
+
"t": rng.uniform(0, 10, n),
|
|
740
|
+
"w": np.ones(n),
|
|
741
|
+
}
|
|
742
|
+
writer.photons(1, 0, columns)
|
|
743
|
+
writer.metadata("telescope_end", {"telescope_id": 1, "photons": 0.0})
|
|
744
|
+
writer.metadata("event_end")
|
|
745
|
+
writer.metadata("run_end")
|
|
746
|
+
return writer.getvalue()
|
|
747
|
+
|
|
748
|
+
|
|
749
|
+
def test_near_horizontal_photons_pass_checks_and_reach_ground(tmp_path):
|
|
750
|
+
# Geometry only: an atmospheric profile or transmission absorbs photons at this grazing angle.
|
|
751
|
+
source = tmp_path / "in.pst"
|
|
752
|
+
source.write_bytes(near_horizontal_stream())
|
|
753
|
+
summary = obdeect_propagation.propagate(
|
|
754
|
+
source, tmp_path / "out.pst", extinction=False, site_altitude_m=SITE_M, seed=1
|
|
755
|
+
)
|
|
756
|
+
assert summary["photons_in"] == len(NEAR_HORIZONTAL_DIRECTIONS)
|
|
757
|
+
assert summary["photons_out"] == len(NEAR_HORIZONTAL_DIRECTIONS)
|
|
758
|
+
|
|
759
|
+
|
|
672
760
|
def _geometry_options(**extra):
|
|
673
761
|
# 400 to 700 nm: the extinction is far from zero, so the normal run drops no row.
|
|
674
762
|
return {
|
|
@@ -3,6 +3,7 @@ cmake_minimum_required(VERSION 3.20)
|
|
|
3
3
|
project(obdeect_ray_tracing LANGUAGES CXX)
|
|
4
4
|
|
|
5
5
|
option(OBDEECT_RAY_TRACING_BUILD_TESTING "Build the C++ tests" ON)
|
|
6
|
+
option(OBDEECT_RAY_TRACING_BUILD_TOOLS "Build the native trace-stream program" ON)
|
|
6
7
|
if(DEFINED SKBUILD_PLATLIB_DIR)
|
|
7
8
|
set(OBDEECT_RAY_TRACING_BUILD_PYTHON_API_DEFAULT ON)
|
|
8
9
|
else()
|
|
@@ -40,11 +41,12 @@ if(NOT TARGET obdeect::stream)
|
|
|
40
41
|
endif()
|
|
41
42
|
|
|
42
43
|
# Header-only, standard-library-only core.
|
|
44
|
+
find_package(Threads REQUIRED)
|
|
43
45
|
add_library(obdeect_ray_tracing_core INTERFACE)
|
|
44
46
|
target_include_directories(obdeect_ray_tracing_core INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/cpp/include)
|
|
45
47
|
target_compile_features(obdeect_ray_tracing_core INTERFACE cxx_std_20)
|
|
46
48
|
# Philox core shared with the other components.
|
|
47
|
-
target_link_libraries(obdeect_ray_tracing_core INTERFACE obdeect::stream)
|
|
49
|
+
target_link_libraries(obdeect_ray_tracing_core INTERFACE obdeect::stream Threads::Threads)
|
|
48
50
|
# Identical floating-point results for any thread count and block size on one
|
|
49
51
|
# platform: no implicit fused multiply-add contraction. Transcendental functions
|
|
50
52
|
# come from the platform's math library, so results may differ between
|
|
@@ -87,9 +89,24 @@ if(OBDEECT_RAY_TRACING_BUILD_PYTHON_API)
|
|
|
87
89
|
install(TARGETS _core LIBRARY DESTINATION obdeect/ray_tracing)
|
|
88
90
|
endif()
|
|
89
91
|
|
|
92
|
+
if(OBDEECT_RAY_TRACING_BUILD_TOOLS)
|
|
93
|
+
add_executable(obdeect-ray-tracing-trace-stream cpp/tools/trace_stream.cpp)
|
|
94
|
+
target_link_libraries(obdeect-ray-tracing-trace-stream PRIVATE obdeect_ray_tracing_core)
|
|
95
|
+
obdeect_ray_tracing_enable_warnings(obdeect-ray-tracing-trace-stream)
|
|
96
|
+
if(OBDEECT_RAY_TRACING_BUILD_TESTING)
|
|
97
|
+
add_test(NAME trace_stream_version COMMAND obdeect-ray-tracing-trace-stream --version)
|
|
98
|
+
set_tests_properties(trace_stream_version PROPERTIES PASS_REGULAR_EXPRESSION
|
|
99
|
+
"^obdeect ray-tracing trace-stream [0-9]+\\.[0-9]+\\.[0-9]+ \\(photon-stream format [0-9]+\\.[0-9]+\\)")
|
|
100
|
+
endif()
|
|
101
|
+
# Wheels: inside the package, run through `obdeect ray-tracing trace-stream`.
|
|
102
|
+
if(DEFINED SKBUILD_PLATLIB_DIR)
|
|
103
|
+
install(TARGETS obdeect-ray-tracing-trace-stream RUNTIME DESTINATION obdeect/ray_tracing/bin)
|
|
104
|
+
endif()
|
|
105
|
+
endif()
|
|
106
|
+
|
|
90
107
|
if(OBDEECT_RAY_TRACING_BUILD_TESTING)
|
|
91
108
|
enable_testing()
|
|
92
|
-
foreach(name kernels trace model_json bounds)
|
|
109
|
+
foreach(name kernels trace model_json bounds model_hash)
|
|
93
110
|
add_executable(test_${name} cpp/tests/test_${name}.cpp)
|
|
94
111
|
target_link_libraries(test_${name} PRIVATE obdeect_ray_tracing_core)
|
|
95
112
|
# check.hpp lives with the stream tests; tests are built from the repository only, never from an sdist.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#pragma once
|
|
2
2
|
|
|
3
3
|
#include "obdeect/stream/parse.hpp"
|
|
4
|
+
#include <algorithm>
|
|
4
5
|
#include <cctype>
|
|
5
6
|
#include <charconv>
|
|
6
7
|
#include <cmath>
|
|
@@ -190,8 +191,15 @@ private:
|
|
|
190
191
|
space();
|
|
191
192
|
expect(':');
|
|
192
193
|
space();
|
|
193
|
-
|
|
194
|
-
|
|
194
|
+
Value item = value(depth + 1);
|
|
195
|
+
// Later duplicates replace earlier ones, as in Python's json.loads.
|
|
196
|
+
const auto found = std::find(members.names.begin(), members.names.end(), key);
|
|
197
|
+
if (found != members.names.end()) {
|
|
198
|
+
members.values[static_cast<std::size_t>(found - members.names.begin())] = std::move(item);
|
|
199
|
+
} else {
|
|
200
|
+
members.names.push_back(std::move(key));
|
|
201
|
+
members.values.push_back(std::move(item));
|
|
202
|
+
}
|
|
195
203
|
space();
|
|
196
204
|
} while (take(','));
|
|
197
205
|
expect('}');
|