obdeect 0.7.2__tar.gz → 0.8.0__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.7.2 → obdeect-0.8.0}/.clang-tidy +1 -1
- obdeect-0.8.0/.github/dependabot.yml +13 -0
- {obdeect-0.7.2 → obdeect-0.8.0}/.github/workflows/changelog.yml +4 -5
- obdeect-0.8.0/.github/workflows/ci.yml +39 -0
- {obdeect-0.7.2 → obdeect-0.8.0}/.github/workflows/docs.yml +10 -7
- obdeect-0.8.0/.github/workflows/pypi.yml +154 -0
- obdeect-0.8.0/.github/workflows/tests.yml +116 -0
- {obdeect-0.7.2 → obdeect-0.8.0}/.gitignore +4 -4
- {obdeect-0.7.2 → obdeect-0.8.0}/.pre-commit-config.yaml +5 -7
- obdeect-0.8.0/AGENTS.md +126 -0
- obdeect-0.8.0/CHANGELOG.md +302 -0
- obdeect-0.8.0/CITATION.cff +22 -0
- obdeect-0.8.0/CMakeLists.txt +12 -0
- {obdeect-0.7.2 → obdeect-0.8.0}/CMakePresets.json +11 -1
- obdeect-0.8.0/PKG-INFO +76 -0
- obdeect-0.8.0/README.md +58 -0
- {obdeect-0.7.2 → obdeect-0.8.0}/docs/build_versions.py +7 -1
- {obdeect-0.7.2 → obdeect-0.8.0}/docs/conf.py +4 -6
- obdeect-0.8.0/docs/index.md +81 -0
- obdeect-0.8.0/docs/installation.md +47 -0
- obdeect-0.8.0/docs/propagation/extinction.md +130 -0
- obdeect-0.8.0/docs/propagation/index.md +20 -0
- obdeect-0.8.0/docs/propagation/propagation.md +196 -0
- obdeect-0.8.0/docs/propagation/refraction.md +128 -0
- obdeect-0.8.0/docs/propagation/scattering.md +150 -0
- obdeect-0.8.0/docs/ray-tracing/VALIDATION.md +339 -0
- obdeect-0.8.0/docs/ray-tracing/air-shower-photons.md +115 -0
- obdeect-0.8.0/docs/ray-tracing/analysis-v0.7.2.md +592 -0
- obdeect-0.8.0/docs/ray-tracing/api.md +42 -0
- obdeect-0.8.0/docs/ray-tracing/batch-tracing.md +57 -0
- obdeect-0.8.0/docs/ray-tracing/index.md +61 -0
- obdeect-0.8.0/docs/ray-tracing/installation.md +21 -0
- obdeect-0.8.0/docs/ray-tracing/light-sources.md +75 -0
- obdeect-0.8.0/docs/ray-tracing/limitations.md +60 -0
- obdeect-0.8.0/docs/ray-tracing/optical-elements.md +79 -0
- obdeect-0.8.0/docs/ray-tracing/optical-models.md +45 -0
- obdeect-0.8.0/docs/ray-tracing/optics.md +58 -0
- obdeect-0.8.0/docs/ray-tracing/photon-stream.md +110 -0
- {obdeect-0.7.2/docs → obdeect-0.8.0/docs/ray-tracing}/python-guide.md +11 -16
- obdeect-0.8.0/docs/ray-tracing/shadowing.md +53 -0
- {obdeect-0.7.2/docs → obdeect-0.8.0/docs/ray-tracing}/telescopes.md +14 -17
- obdeect-0.8.0/docs/ray-tracing/usage.md +31 -0
- obdeect-0.8.0/docs/ray-tracing/user-guide.md +16 -0
- obdeect-0.8.0/docs/sources/index.md +28 -0
- obdeect-0.8.0/docs/sources/programs/beam-scan.md +29 -0
- obdeect-0.8.0/docs/sources/programs/flasher.md +86 -0
- obdeect-0.8.0/docs/sources/programs/laser-beam.md +48 -0
- obdeect-0.8.0/docs/sources/programs/led.md +51 -0
- obdeect-0.8.0/docs/sources/programs/muon-track.md +65 -0
- obdeect-0.8.0/docs/sources/programs/night-sky.md +35 -0
- obdeect-0.8.0/docs/sources/programs/point-source.md +41 -0
- obdeect-0.8.0/docs/sources/sim_telarray.md +54 -0
- obdeect-0.8.0/docs/sources/sources.md +88 -0
- obdeect-0.8.0/docs/sources/spec/background.md +24 -0
- obdeect-0.8.0/docs/sources/spec/cli-conventions.md +90 -0
- obdeect-0.8.0/docs/sources/spec/conventions.md +67 -0
- obdeect-0.8.0/docs/sources/spec/distributions.md +68 -0
- obdeect-0.8.0/docs/sources/spec/index.md +54 -0
- obdeect-0.8.0/docs/sources/spec/python-api.md +58 -0
- obdeect-0.8.0/docs/sources/spec/sky-sources.md +44 -0
- obdeect-0.8.0/docs/sources/spec/source-core.md +107 -0
- obdeect-0.8.0/docs/sources/spec/stream-writer.md +75 -0
- obdeect-0.8.0/docs/sources/spec/tests.md +117 -0
- obdeect-0.8.0/docs/sources/spec/tool-beam-scan.md +27 -0
- obdeect-0.8.0/docs/sources/spec/tool-flasher.md +67 -0
- obdeect-0.8.0/docs/sources/spec/tool-laser-beam.md +59 -0
- obdeect-0.8.0/docs/sources/spec/tool-led.md +78 -0
- obdeect-0.8.0/docs/sources/spec/tool-muon-track.md +78 -0
- obdeect-0.8.0/docs/sources/spec/tool-night-sky.md +35 -0
- obdeect-0.8.0/docs/sources/spec/tool-point-source.md +45 -0
- obdeect-0.8.0/docs/sources/spec/track.md +37 -0
- obdeect-0.8.0/docs/stream/format.md +171 -0
- obdeect-0.8.0/docs/stream/index.md +10 -0
- obdeect-0.8.0/docs/stream/usage.md +311 -0
- obdeect-0.8.0/pyproject.toml +64 -0
- obdeect-0.8.0/src/propagation/CMakeLists.txt +84 -0
- obdeect-0.8.0/src/propagation/README.md +21 -0
- obdeect-0.8.0/src/propagation/cpp/bindings/core.cpp +26 -0
- obdeect-0.8.0/src/propagation/cpp/bindings/extinction_bindings.hpp +238 -0
- obdeect-0.8.0/src/propagation/cpp/bindings/profile_bindings.hpp +126 -0
- obdeect-0.8.0/src/propagation/cpp/bindings/propagator_bindings.hpp +111 -0
- obdeect-0.8.0/src/propagation/cpp/bindings/scattering_bindings.hpp +124 -0
- obdeect-0.8.0/src/propagation/cpp/include/obdeect/propagation/extinction.hpp +56 -0
- obdeect-0.8.0/src/propagation/cpp/include/obdeect/propagation/pipeline.hpp +207 -0
- obdeect-0.8.0/src/propagation/cpp/include/obdeect/propagation/profile.hpp +324 -0
- obdeect-0.8.0/src/propagation/cpp/include/obdeect/propagation/propagator.hpp +959 -0
- obdeect-0.8.0/src/propagation/cpp/include/obdeect/propagation/refraction.hpp +234 -0
- obdeect-0.8.0/src/propagation/cpp/include/obdeect/propagation/scattering.hpp +620 -0
- obdeect-0.8.0/src/propagation/cpp/include/obdeect/propagation/sky.hpp +151 -0
- obdeect-0.8.0/src/propagation/cpp/include/obdeect/propagation/streams.hpp +31 -0
- obdeect-0.8.0/src/propagation/cpp/include/obdeect/propagation/thinning.hpp +194 -0
- obdeect-0.8.0/src/propagation/cpp/include/obdeect/propagation/timing.hpp +103 -0
- obdeect-0.8.0/src/propagation/cpp/include/obdeect/propagation/transmission.hpp +318 -0
- obdeect-0.8.0/src/propagation/cpp/include/obdeect/propagation/version.hpp +13 -0
- obdeect-0.8.0/src/propagation/cpp/include/obdeect/propagation/wavelength.hpp +58 -0
- obdeect-0.8.0/src/propagation/cpp/tests/data/atm_trans_2000_1_10_0_0_2000.dat +815 -0
- obdeect-0.8.0/src/propagation/cpp/tests/data/atmprof_ecmwf_north_winter_fixed.dat +74 -0
- obdeect-0.8.0/src/propagation/cpp/tests/data/scattering_exponential.dat +1229 -0
- obdeect-0.8.0/src/propagation/cpp/tests/test_physics.cpp +380 -0
- obdeect-0.8.0/src/propagation/cpp/tests/test_pipeline.cpp +185 -0
- obdeect-0.8.0/src/propagation/cpp/tests/test_profile.cpp +205 -0
- obdeect-0.8.0/src/propagation/cpp/tests/test_propagator.cpp +1252 -0
- obdeect-0.8.0/src/propagation/cpp/tests/test_refraction.cpp +155 -0
- obdeect-0.8.0/src/propagation/cpp/tests/test_scattering.cpp +616 -0
- obdeect-0.8.0/src/propagation/cpp/tests/test_stream_contract.cpp +15 -0
- obdeect-0.8.0/src/propagation/cpp/tests/test_thinning.cpp +314 -0
- obdeect-0.8.0/src/propagation/cpp/tests/test_timing.cpp +103 -0
- obdeect-0.8.0/src/propagation/cpp/tests/test_transmission.cpp +282 -0
- obdeect-0.8.0/src/propagation/cpp/tests/test_version.cpp +14 -0
- obdeect-0.8.0/src/propagation/cpp/tools/propagate.cpp +277 -0
- obdeect-0.8.0/src/propagation/pyproject.toml +42 -0
- obdeect-0.8.0/src/propagation/python/obdeect/propagation/__init__.py +23 -0
- obdeect-0.8.0/src/propagation/python/obdeect/propagation/cli.py +23 -0
- obdeect-0.8.0/src/propagation/python/obdeect/propagation/convert.py +267 -0
- obdeect-0.8.0/src/propagation/python/obdeect/propagation/extinction.py +113 -0
- obdeect-0.8.0/src/propagation/python/obdeect/propagation/profile.py +108 -0
- obdeect-0.8.0/src/propagation/python/obdeect/propagation/propagation.py +145 -0
- obdeect-0.8.0/src/propagation/python/obdeect/propagation/scattering.py +86 -0
- obdeect-0.8.0/src/propagation/python/tests/test_convert.py +213 -0
- obdeect-0.8.0/src/propagation/python/tests/test_extinction.py +342 -0
- obdeect-0.8.0/src/propagation/python/tests/test_import.py +9 -0
- obdeect-0.8.0/src/propagation/python/tests/test_profile.py +171 -0
- obdeect-0.8.0/src/propagation/python/tests/test_propagate.py +842 -0
- obdeect-0.8.0/src/propagation/python/tests/test_scattering.py +173 -0
- obdeect-0.8.0/src/propagation/python/tests/test_stream_contract.py +30 -0
- obdeect-0.8.0/src/ray_tracing/CMakeLists.txt +116 -0
- obdeect-0.8.0/src/ray_tracing/README.md +25 -0
- {obdeect-0.7.2 → obdeect-0.8.0/src/ray_tracing}/cpp/bench/bench_trace.cpp +24 -14
- {obdeect-0.7.2 → obdeect-0.8.0/src/ray_tracing}/cpp/bench/replay.cpp +18 -7
- {obdeect-0.7.2 → obdeect-0.8.0/src/ray_tracing}/cpp/bindings/README.md +1 -1
- {obdeect-0.7.2 → obdeect-0.8.0/src/ray_tracing}/cpp/bindings/core.cpp +109 -98
- {obdeect-0.7.2/cpp/include/obdeect → obdeect-0.8.0/src/ray_tracing/cpp/include/obdeect/ray_tracing}/bounds.hpp +3 -3
- {obdeect-0.7.2/cpp/include/obdeect → obdeect-0.8.0/src/ray_tracing/cpp/include/obdeect/ray_tracing}/bunches.hpp +15 -10
- {obdeect-0.7.2/cpp/include/obdeect → obdeect-0.8.0/src/ray_tracing/cpp/include/obdeect/ray_tracing}/json.hpp +31 -10
- {obdeect-0.7.2/cpp/include/obdeect → obdeect-0.8.0/src/ray_tracing/cpp/include/obdeect/ray_tracing}/model.hpp +5 -5
- {obdeect-0.7.2/cpp/include/obdeect → obdeect-0.8.0/src/ray_tracing/cpp/include/obdeect/ray_tracing}/model_json.hpp +7 -6
- {obdeect-0.7.2/cpp/include/obdeect → obdeect-0.8.0/src/ray_tracing/cpp/include/obdeect/ray_tracing}/obscurers.hpp +8 -8
- obdeect-0.8.0/src/ray_tracing/cpp/include/obdeect/ray_tracing/random.hpp +56 -0
- {obdeect-0.7.2/cpp/include/obdeect → obdeect-0.8.0/src/ray_tracing/cpp/include/obdeect/ray_tracing}/source.hpp +6 -5
- {obdeect-0.7.2/cpp/include/obdeect → obdeect-0.8.0/src/ray_tracing/cpp/include/obdeect/ray_tracing}/surfaces.hpp +13 -13
- {obdeect-0.7.2/cpp/include/obdeect → obdeect-0.8.0/src/ray_tracing/cpp/include/obdeect/ray_tracing}/table.hpp +2 -2
- {obdeect-0.7.2/cpp/include/obdeect → obdeect-0.8.0/src/ray_tracing/cpp/include/obdeect/ray_tracing}/trace.hpp +67 -26
- {obdeect-0.7.2/cpp/include/obdeect → obdeect-0.8.0/src/ray_tracing/cpp/include/obdeect/ray_tracing}/vec.hpp +5 -3
- {obdeect-0.7.2 → obdeect-0.8.0/src/ray_tracing}/cpp/tests/legacy_asphere.hpp +2 -2
- {obdeect-0.7.2 → obdeect-0.8.0/src/ray_tracing}/cpp/tests/test_asphere_steps.cpp +4 -4
- {obdeect-0.7.2 → obdeect-0.8.0/src/ray_tracing}/cpp/tests/test_bounds.cpp +3 -3
- {obdeect-0.7.2 → obdeect-0.8.0/src/ray_tracing}/cpp/tests/test_kernels.cpp +4 -4
- {obdeect-0.7.2 → obdeect-0.8.0/src/ray_tracing}/cpp/tests/test_model_json.cpp +33 -3
- {obdeect-0.7.2 → obdeect-0.8.0/src/ray_tracing}/cpp/tests/test_trace.cpp +43 -4
- obdeect-0.8.0/src/ray_tracing/pyproject.toml +43 -0
- obdeect-0.8.0/src/ray_tracing/python/obdeect/ray_tracing/__init__.py +18 -0
- {obdeect-0.7.2/python/obdeect → obdeect-0.8.0/src/ray_tracing/python/obdeect/ray_tracing}/cli.py +111 -11
- {obdeect-0.7.2/python/obdeect → obdeect-0.8.0/src/ray_tracing/python/obdeect/ray_tracing}/compiler.py +2 -2
- {obdeect-0.7.2/python/obdeect → obdeect-0.8.0/src/ray_tracing/python/obdeect/ray_tracing}/formats.py +1 -1
- {obdeect-0.7.2/python/obdeect → obdeect-0.8.0/src/ray_tracing/python/obdeect/ray_tracing}/model.py +11 -7
- {obdeect-0.7.2/python/obdeect → obdeect-0.8.0/src/ray_tracing/python/obdeect/ray_tracing}/plot.py +1 -2
- {obdeect-0.7.2/python/obdeect → obdeect-0.8.0/src/ray_tracing/python/obdeect/ray_tracing}/propagation.py +1 -1
- {obdeect-0.7.2/python/obdeect → obdeect-0.8.0/src/ray_tracing/python/obdeect/ray_tracing}/psf.py +1 -2
- {obdeect-0.7.2/python/obdeect → obdeect-0.8.0/src/ray_tracing/python/obdeect/ray_tracing}/repository.py +2 -2
- obdeect-0.8.0/src/ray_tracing/python/obdeect/ray_tracing/stream.py +648 -0
- {obdeect-0.7.2 → obdeect-0.8.0/src/ray_tracing}/python/tests/test_axes_offset.py +2 -2
- {obdeect-0.7.2 → obdeect-0.8.0/src/ray_tracing}/python/tests/test_bunches.py +3 -3
- {obdeect-0.7.2 → obdeect-0.8.0/src/ray_tracing}/python/tests/test_compiler.py +2 -2
- {obdeect-0.7.2 → obdeect-0.8.0/src/ray_tracing}/python/tests/test_docs_versions.py +1 -1
- {obdeect-0.7.2 → obdeect-0.8.0/src/ray_tracing}/python/tests/test_formats.py +2 -2
- {obdeect-0.7.2 → obdeect-0.8.0/src/ray_tracing}/python/tests/test_model.py +15 -12
- {obdeect-0.7.2 → obdeect-0.8.0/src/ray_tracing}/python/tests/test_propagation.py +1 -1
- obdeect-0.8.0/src/ray_tracing/python/tests/test_release_metadata.py +20 -0
- obdeect-0.8.0/src/ray_tracing/python/tests/test_stream.py +780 -0
- obdeect-0.8.0/src/sources/CMakeLists.txt +101 -0
- obdeect-0.8.0/src/sources/README.md +26 -0
- obdeect-0.8.0/src/sources/cpp/bindings/core.cpp +228 -0
- obdeect-0.8.0/src/sources/cpp/include/obdeect/sources/background.hpp +102 -0
- obdeect-0.8.0/src/sources/cpp/include/obdeect/sources/cli.hpp +115 -0
- obdeect-0.8.0/src/sources/cpp/include/obdeect/sources/density.hpp +330 -0
- obdeect-0.8.0/src/sources/cpp/include/obdeect/sources/emission_stream.hpp +192 -0
- obdeect-0.8.0/src/sources/cpp/include/obdeect/sources/programs/beam-scan.hpp +71 -0
- obdeect-0.8.0/src/sources/cpp/include/obdeect/sources/programs/flasher.hpp +235 -0
- obdeect-0.8.0/src/sources/cpp/include/obdeect/sources/programs/laser-beam.hpp +151 -0
- obdeect-0.8.0/src/sources/cpp/include/obdeect/sources/programs/led.hpp +384 -0
- obdeect-0.8.0/src/sources/cpp/include/obdeect/sources/programs/muon-track.hpp +482 -0
- obdeect-0.8.0/src/sources/cpp/include/obdeect/sources/programs/night-sky.hpp +81 -0
- obdeect-0.8.0/src/sources/cpp/include/obdeect/sources/programs/point-source.hpp +99 -0
- obdeect-0.8.0/src/sources/cpp/include/obdeect/sources/programs/stream_output.hpp +323 -0
- obdeect-0.8.0/src/sources/cpp/include/obdeect/sources/sky_sources.hpp +189 -0
- obdeect-0.8.0/src/sources/cpp/include/obdeect/sources/source.hpp +358 -0
- obdeect-0.8.0/src/sources/cpp/include/obdeect/sources/streams.hpp +27 -0
- obdeect-0.8.0/src/sources/cpp/include/obdeect/sources/track.hpp +136 -0
- obdeect-0.8.0/src/sources/cpp/include/obdeect/sources/vec3.hpp +69 -0
- obdeect-0.8.0/src/sources/cpp/include/obdeect/sources/version.hpp +13 -0
- obdeect-0.8.0/src/sources/cpp/tests/program_stream.hpp +85 -0
- obdeect-0.8.0/src/sources/cpp/tests/sky_stream_check.hpp +50 -0
- obdeect-0.8.0/src/sources/cpp/tests/test_beam-scan.cpp +120 -0
- obdeect-0.8.0/src/sources/cpp/tests/test_density.cpp +175 -0
- obdeect-0.8.0/src/sources/cpp/tests/test_flasher.cpp +425 -0
- obdeect-0.8.0/src/sources/cpp/tests/test_laser-beam.cpp +212 -0
- obdeect-0.8.0/src/sources/cpp/tests/test_led.cpp +218 -0
- obdeect-0.8.0/src/sources/cpp/tests/test_muon-track.cpp +448 -0
- obdeect-0.8.0/src/sources/cpp/tests/test_night-sky.cpp +237 -0
- obdeect-0.8.0/src/sources/cpp/tests/test_point-source.cpp +210 -0
- obdeect-0.8.0/src/sources/cpp/tests/test_sky_args.cpp +154 -0
- obdeect-0.8.0/src/sources/cpp/tests/test_source.cpp +401 -0
- obdeect-0.8.0/src/sources/cpp/tests/test_stream_contract.cpp +50 -0
- obdeect-0.8.0/src/sources/cpp/tests/test_version.cpp +14 -0
- obdeect-0.8.0/src/sources/cpp/tools/beam-scan.cpp +52 -0
- obdeect-0.8.0/src/sources/cpp/tools/flasher.cpp +130 -0
- obdeect-0.8.0/src/sources/cpp/tools/laser-beam.cpp +95 -0
- obdeect-0.8.0/src/sources/cpp/tools/led.cpp +139 -0
- obdeect-0.8.0/src/sources/cpp/tools/muon-track.cpp +35 -0
- obdeect-0.8.0/src/sources/cpp/tools/night-sky.cpp +75 -0
- obdeect-0.8.0/src/sources/cpp/tools/point-source.cpp +98 -0
- obdeect-0.8.0/src/sources/cpp/tools/sky_args.hpp +181 -0
- obdeect-0.8.0/src/sources/cpp/tools/telpos_file.hpp +61 -0
- obdeect-0.8.0/src/sources/cpp/tools/tool_args.hpp +85 -0
- obdeect-0.8.0/src/sources/pyproject.toml +42 -0
- obdeect-0.8.0/src/sources/python/obdeect/sources/__init__.py +5 -0
- obdeect-0.8.0/src/sources/python/obdeect/sources/cli.py +21 -0
- obdeect-0.8.0/src/sources/python/obdeect/sources/plot.py +57 -0
- obdeect-0.8.0/src/sources/python/obdeect/sources/source.py +263 -0
- obdeect-0.8.0/src/sources/python/tests/test_core_arity.py +27 -0
- obdeect-0.8.0/src/sources/python/tests/test_import.py +9 -0
- obdeect-0.8.0/src/sources/python/tests/test_plot.py +30 -0
- obdeect-0.8.0/src/sources/python/tests/test_source.py +325 -0
- obdeect-0.8.0/src/sources/python/tests/test_stream_contract.py +34 -0
- obdeect-0.8.0/src/stream/CMakeLists.txt +205 -0
- obdeect-0.8.0/src/stream/README.md +25 -0
- obdeect-0.8.0/src/stream/cmake/obdeect_stream-config.cmake.in +3 -0
- obdeect-0.8.0/src/stream/cmake/version.hpp.in +11 -0
- obdeect-0.8.0/src/stream/cpp/bench/bench_stream.cpp +119 -0
- obdeect-0.8.0/src/stream/cpp/bench/gen_corsika.cpp +138 -0
- obdeect-0.8.0/src/stream/cpp/bindings/core.cpp +409 -0
- obdeect-0.8.0/src/stream/cpp/capi/obdeect_stream_c.cpp +674 -0
- obdeect-0.8.0/src/stream/cpp/include/obdeect/stream/constants.hpp +18 -0
- obdeect-0.8.0/src/stream/cpp/include/obdeect/stream/corsika.hpp +628 -0
- obdeect-0.8.0/src/stream/cpp/include/obdeect/stream/eventio.hpp +824 -0
- obdeect-0.8.0/src/stream/cpp/include/obdeect/stream/format.hpp +58 -0
- obdeect-0.8.0/src/stream/cpp/include/obdeect/stream/grisu.hpp +575 -0
- obdeect-0.8.0/src/stream/cpp/include/obdeect/stream/obdeect_stream.h +218 -0
- obdeect-0.8.0/src/stream/cpp/include/obdeect/stream/photons.hpp +99 -0
- obdeect-0.8.0/src/stream/cpp/include/obdeect/stream/random.hpp +66 -0
- obdeect-0.8.0/src/stream/cpp/include/obdeect/stream/simtel.hpp +1162 -0
- obdeect-0.8.0/src/stream/cpp/include/obdeect/stream/stages.hpp +40 -0
- obdeect-0.8.0/src/stream/cpp/include/obdeect/stream/stdin_buffer.hpp +49 -0
- obdeect-0.8.0/src/stream/cpp/include/obdeect/stream/stream.hpp +572 -0
- obdeect-0.8.0/src/stream/cpp/tests/consumer/CMakeLists.txt +13 -0
- obdeect-0.8.0/src/stream/cpp/tests/consumer/main.cpp +31 -0
- obdeect-0.8.0/src/stream/cpp/tests/consumer/main_c.c +6 -0
- obdeect-0.8.0/src/stream/cpp/tests/data/conformance/bad_magic.ps +0 -0
- obdeect-0.8.0/src/stream/cpp/tests/data/conformance/expected.json +130 -0
- obdeect-0.8.0/src/stream/cpp/tests/data/conformance/make_conformance.py +137 -0
- obdeect-0.8.0/src/stream/cpp/tests/data/conformance/too_many_rows.ps +0 -0
- obdeect-0.8.0/src/stream/cpp/tests/data/conformance/truncated_chunk.ps +0 -0
- obdeect-0.8.0/src/stream/cpp/tests/data/conformance/unknown_major.ps +0 -0
- obdeect-0.8.0/src/stream/cpp/tests/data/conformance/valid.ps +0 -0
- obdeect-0.8.0/src/stream/cpp/tests/test_capi.c +304 -0
- obdeect-0.8.0/src/stream/cpp/tests/test_capi_cpp.cpp +177 -0
- obdeect-0.8.0/src/stream/cpp/tests/test_corsika.cpp +517 -0
- obdeect-0.8.0/src/stream/cpp/tests/test_eventio.cpp +464 -0
- obdeect-0.8.0/src/stream/cpp/tests/test_format.cpp +128 -0
- obdeect-0.8.0/src/stream/cpp/tests/test_grisu.cpp +338 -0
- obdeect-0.8.0/src/stream/cpp/tests/test_simtel.cpp +1169 -0
- obdeect-0.8.0/src/stream/cpp/tests/test_stages.cpp +18 -0
- obdeect-0.8.0/src/stream/cpp/tests/test_stream.cpp +308 -0
- obdeect-0.8.0/src/stream/cpp/tests/test_version.cpp +11 -0
- obdeect-0.8.0/src/stream/cpp/tools/corsika2ps.cpp +84 -0
- obdeect-0.8.0/src/stream/cpp/tools/ps2grisu.cpp +141 -0
- obdeect-0.8.0/src/stream/cpp/tools/ps2simtel.cpp +143 -0
- obdeect-0.8.0/src/stream/cpp/tools/ps_cat.cpp +174 -0
- obdeect-0.8.0/src/stream/cpp/tools/ps_tee.cpp +125 -0
- obdeect-0.8.0/src/stream/cpp/tools/tool_version.hpp +17 -0
- obdeect-0.8.0/src/stream/pyproject.toml +43 -0
- obdeect-0.8.0/src/stream/python/obdeect/stream/__init__.py +28 -0
- obdeect-0.8.0/src/stream/python/obdeect/stream/__main__.py +60 -0
- obdeect-0.8.0/src/stream/python/obdeect/stream/_package.py +27 -0
- obdeect-0.8.0/src/stream/python/obdeect/stream/cli.py +145 -0
- obdeect-0.8.0/src/stream/python/obdeect/stream/convert.py +103 -0
- obdeect-0.8.0/src/stream/python/obdeect/stream/stage.py +140 -0
- obdeect-0.8.0/src/stream/python/obdeect/stream/stream.py +78 -0
- obdeect-0.8.0/src/stream/python/tests/test_cli.py +50 -0
- obdeect-0.8.0/src/stream/python/tests/test_cmake_package.py +51 -0
- obdeect-0.8.0/src/stream/python/tests/test_constants.py +23 -0
- obdeect-0.8.0/src/stream/python/tests/test_convert.py +482 -0
- obdeect-0.8.0/src/stream/python/tests/test_grisu.py +140 -0
- obdeect-0.8.0/src/stream/python/tests/test_import.py +9 -0
- obdeect-0.8.0/src/stream/python/tests/test_stage.py +198 -0
- obdeect-0.8.0/src/stream/python/tests/test_stream.py +255 -0
- obdeect-0.8.0/src/stream/python/tests/test_validation_script.py +37 -0
- obdeect-0.8.0/validation/README.md +22 -0
- obdeect-0.8.0/validation/sources/compare-led-camera.txt +7 -0
- obdeect-0.8.0/validation/sources/compare_flasher-dish.sh +12 -0
- obdeect-0.8.0/validation/sources/compare_flasher-secondary.sh +13 -0
- obdeect-0.8.0/validation/sources/compare_led.sh +13 -0
- obdeect-0.8.0/validation/sources/compare_stream.py +105 -0
- obdeect-0.8.0/validation/sources/summarize_iact.py +34 -0
- obdeect-0.8.0/validation/stream/validate_container.sh +245 -0
- obdeect-0.8.0/validation/test_chain.py +111 -0
- obdeect-0.7.2/.github/workflows/ci.yml +0 -31
- obdeect-0.7.2/.github/workflows/pypi.yml +0 -108
- obdeect-0.7.2/.github/workflows/tests.yml +0 -58
- obdeect-0.7.2/AGENTS.md +0 -113
- obdeect-0.7.2/CHANGELOG.md +0 -177
- obdeect-0.7.2/CITATION.cff +0 -13
- obdeect-0.7.2/CMakeLists.txt +0 -85
- obdeect-0.7.2/PKG-INFO +0 -137
- obdeect-0.7.2/README.md +0 -76
- obdeect-0.7.2/cpp/include/obdeect/random.hpp +0 -47
- obdeect-0.7.2/docs/VALIDATION.md +0 -389
- obdeect-0.7.2/docs/air-shower-photons.md +0 -103
- obdeect-0.7.2/docs/api.md +0 -32
- obdeect-0.7.2/docs/batch-tracing.md +0 -139
- obdeect-0.7.2/docs/index.md +0 -81
- obdeect-0.7.2/docs/installation.md +0 -43
- obdeect-0.7.2/docs/light-sources.md +0 -80
- obdeect-0.7.2/docs/limitations.md +0 -69
- obdeect-0.7.2/docs/optical-elements.md +0 -91
- obdeect-0.7.2/docs/optical-models.md +0 -48
- obdeect-0.7.2/docs/optics.md +0 -36
- obdeect-0.7.2/docs/shadowing.md +0 -56
- obdeect-0.7.2/docs/usage.md +0 -33
- obdeect-0.7.2/docs/user-guide.md +0 -16
- obdeect-0.7.2/pyproject.toml +0 -73
- obdeect-0.7.2/python/obdeect/__init__.py +0 -26
- {obdeect-0.7.2 → obdeect-0.8.0}/.clang-format +0 -0
- {obdeect-0.7.2 → obdeect-0.8.0}/.editorconfig +0 -0
- {obdeect-0.7.2 → obdeect-0.8.0}/.gitattributes +0 -0
- {obdeect-0.7.2 → obdeect-0.8.0}/LICENSE +0 -0
- {obdeect-0.7.2 → obdeect-0.8.0}/docs/_static/figures/baffle_area.png +0 -0
- {obdeect-0.7.2 → obdeect-0.8.0}/docs/_static/figures/mst_shadowing.png +0 -0
- {obdeect-0.7.2 → obdeect-0.8.0}/docs/_static/figures/telescope_lst.png +0 -0
- {obdeect-0.7.2 → obdeect-0.8.0}/docs/_static/figures/telescope_mst_flashcam.png +0 -0
- {obdeect-0.7.2 → obdeect-0.8.0}/docs/_static/figures/telescope_mst_nectarcam.png +0 -0
- {obdeect-0.7.2 → obdeect-0.8.0}/docs/_static/figures/telescope_sct.png +0 -0
- {obdeect-0.7.2 → obdeect-0.8.0}/docs/_static/figures/telescope_sst.png +0 -0
- {obdeect-0.7.2 → obdeect-0.8.0}/docs/_static/figures/telescopes-provenance.json +0 -0
- {obdeect-0.7.2 → obdeect-0.8.0}/docs/_static/figures/validation_psf_area.png +0 -0
- {obdeect-0.7.2 → obdeect-0.8.0}/docs/_static/images/obdeect_21ratio_large.jpg +0 -0
- {obdeect-0.7.2 → obdeect-0.8.0}/docs/_static/images/obdeect_21ratio_small.jpg +0 -0
- {obdeect-0.7.2 → obdeect-0.8.0}/docs/_static/images/obdeect_large.jpg +0 -0
- {obdeect-0.7.2 → obdeect-0.8.0}/docs/_static/images/obdeect_logo.jpg +0 -0
- {obdeect-0.7.2 → obdeect-0.8.0}/docs/_static/images/obdeect_small.jpg +0 -0
- {obdeect-0.7.2 → obdeect-0.8.0}/docs/_static/obdeect.css +0 -0
- {obdeect-0.7.2 → obdeect-0.8.0}/docs/changelog.md +0 -0
- {obdeect-0.7.2 → obdeect-0.8.0}/docs/changes/.gitkeep +0 -0
- {obdeect-0.7.2 → obdeect-0.8.0}/docs/figures/make_figures.py +0 -0
- {obdeect-0.7.2 → obdeect-0.8.0}/docs/figures/telescopes.yml +0 -0
- {obdeect-0.7.2 → obdeect-0.8.0/src/ray_tracing}/cpp/bench/replay_compare.hpp +0 -0
- {obdeect-0.7.2 → obdeect-0.8.0/src/ray_tracing}/cpp/tests/data/make_polynomial_reference.py +0 -0
- {obdeect-0.7.2 → obdeect-0.8.0/src/ray_tracing}/cpp/tests/test_replay_compare.cpp +0 -0
- {obdeect-0.7.2/python/obdeect → obdeect-0.8.0/src/ray_tracing/python/obdeect/ray_tracing}/simtel_tables.py +0 -0
- {obdeect-0.7.2 → obdeect-0.8.0/src/ray_tracing}/python/tests/telescopes.py +0 -0
- {obdeect-0.7.2 → obdeect-0.8.0/src/stream}/cpp/tests/check.hpp +0 -0
|
@@ -11,7 +11,7 @@ Checks: >
|
|
|
11
11
|
bugprone-undefined-memory-manipulation,
|
|
12
12
|
performance-for-range-copy
|
|
13
13
|
WarningsAsErrors: '*'
|
|
14
|
-
HeaderFilterRegex: 'cpp/include/obdeect/.*'
|
|
14
|
+
HeaderFilterRegex: 'src/[a-z_]+/cpp/include/obdeect/.*'
|
|
15
15
|
CheckOptions:
|
|
16
16
|
- key: readability-identifier-length.MinimumVariableNameLength
|
|
17
17
|
value: '2'
|
|
@@ -9,9 +9,6 @@ on:
|
|
|
9
9
|
branches:
|
|
10
10
|
- 'main'
|
|
11
11
|
|
|
12
|
-
env:
|
|
13
|
-
FRAGMENT_NAME_PREFIX: "docs/changes/${{ github.event.number }}"
|
|
14
|
-
|
|
15
12
|
permissions:
|
|
16
13
|
contents: read
|
|
17
14
|
|
|
@@ -26,7 +23,9 @@ jobs:
|
|
|
26
23
|
- name: Checkout code
|
|
27
24
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
28
25
|
|
|
29
|
-
- name: Check for at least one changelog fragment
|
|
26
|
+
- name: Check for at least one changelog fragment in a component
|
|
27
|
+
env:
|
|
28
|
+
PR_NUMBER: ${{ github.event.number }}
|
|
30
29
|
run: |
|
|
31
30
|
find docs/changes -type f | \
|
|
32
|
-
grep -E "
|
|
31
|
+
grep -E "^docs/changes/${PR_NUMBER}\.(feature|bugfix|maintenance)\.md$"
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: CI-linter
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
push:
|
|
6
|
+
branches:
|
|
7
|
+
- main
|
|
8
|
+
pull_request:
|
|
9
|
+
|
|
10
|
+
concurrency:
|
|
11
|
+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
12
|
+
cancel-in-progress: true
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
lint:
|
|
16
|
+
runs-on: ubuntu-slim
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
19
|
+
with:
|
|
20
|
+
fetch-depth: 0
|
|
21
|
+
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7
|
|
22
|
+
id: setup-python
|
|
23
|
+
with:
|
|
24
|
+
python-version: '3.14'
|
|
25
|
+
- name: Install linters
|
|
26
|
+
run: python -m pip install --retries 5 --upgrade pip pre-commit clang-format
|
|
27
|
+
# Hook environments are built once per .pre-commit-config.yaml; some hooks
|
|
28
|
+
# download binaries at install time, so a fresh build on every run fails often.
|
|
29
|
+
- name: Cache hook environments
|
|
30
|
+
uses: actions/cache@v6
|
|
31
|
+
with:
|
|
32
|
+
path: ~/.cache/pre-commit
|
|
33
|
+
key: pre-commit-${{ runner.os }}-py${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('.pre-commit-config.yaml') }}
|
|
34
|
+
- name: Run repository hooks
|
|
35
|
+
run: pre-commit run --all-files
|
|
36
|
+
- name: Check C++ formatting
|
|
37
|
+
run: >-
|
|
38
|
+
find src -path '*/cpp/*' -type f \( -name '*.cpp' -o -name '*.hpp' \) -print0
|
|
39
|
+
| xargs -0 clang-format --dry-run --Werror
|
|
@@ -21,18 +21,21 @@ jobs:
|
|
|
21
21
|
permissions:
|
|
22
22
|
contents: read
|
|
23
23
|
steps:
|
|
24
|
-
- uses: actions/checkout@v7
|
|
24
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
25
25
|
with:
|
|
26
26
|
fetch-depth: 0
|
|
27
|
-
- uses: actions/setup-python@v7
|
|
27
|
+
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7
|
|
28
28
|
with:
|
|
29
29
|
python-version: "3.14"
|
|
30
|
-
- name: Install
|
|
31
|
-
run:
|
|
30
|
+
- name: Install all components with the documentation tools
|
|
31
|
+
run: >-
|
|
32
|
+
python -m pip install --upgrade pip
|
|
33
|
+
&& python -m pip install ./src/stream ./src/propagation ./src/sources
|
|
34
|
+
"./src/ray_tracing[docs]"
|
|
32
35
|
- name: Test documentation publishing
|
|
33
36
|
run: |
|
|
34
37
|
python -m pip install pytest
|
|
35
|
-
python -m pytest -q python/tests/test_docs_versions.py
|
|
38
|
+
python -m pytest -q src/ray_tracing/python/tests/test_docs_versions.py
|
|
36
39
|
- name: Build versioned site
|
|
37
40
|
env:
|
|
38
41
|
DOCS_BASE_URL: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}
|
|
@@ -45,7 +48,7 @@ jobs:
|
|
|
45
48
|
args+=(--dev-only)
|
|
46
49
|
fi
|
|
47
50
|
python docs/build_versions.py "${args[@]}"
|
|
48
|
-
- uses: actions/upload-pages-artifact@v5
|
|
51
|
+
- uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5
|
|
49
52
|
with:
|
|
50
53
|
path: docs/_build/site
|
|
51
54
|
|
|
@@ -61,4 +64,4 @@ jobs:
|
|
|
61
64
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
62
65
|
steps:
|
|
63
66
|
- id: deployment
|
|
64
|
-
uses: actions/deploy-pages@v5
|
|
67
|
+
uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Build and publish obdeect
|
|
3
|
+
# One tag vX.Y.Z releases all components and the obdeect package at version X.Y.Z.
|
|
4
|
+
|
|
5
|
+
on:
|
|
6
|
+
pull_request:
|
|
7
|
+
paths:
|
|
8
|
+
- "src/*/cpp/**"
|
|
9
|
+
- "src/*/python/**"
|
|
10
|
+
- "src/*/CMakeLists.txt"
|
|
11
|
+
- "src/*/pyproject.toml"
|
|
12
|
+
- "pyproject.toml"
|
|
13
|
+
- ".github/workflows/pypi.yml"
|
|
14
|
+
push:
|
|
15
|
+
tags:
|
|
16
|
+
- "v*"
|
|
17
|
+
workflow_dispatch:
|
|
18
|
+
inputs:
|
|
19
|
+
publish_testpypi:
|
|
20
|
+
description: Publish the built distributions to TestPyPI
|
|
21
|
+
required: false
|
|
22
|
+
type: boolean
|
|
23
|
+
default: false
|
|
24
|
+
|
|
25
|
+
concurrency:
|
|
26
|
+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
27
|
+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
28
|
+
|
|
29
|
+
permissions:
|
|
30
|
+
contents: read
|
|
31
|
+
|
|
32
|
+
jobs:
|
|
33
|
+
wheels:
|
|
34
|
+
strategy:
|
|
35
|
+
fail-fast: false
|
|
36
|
+
matrix:
|
|
37
|
+
os: [ubuntu-24.04, ubuntu-24.04-arm, macos-15]
|
|
38
|
+
component: [stream, propagation, sources, ray_tracing]
|
|
39
|
+
runs-on: ${{ matrix.os }}
|
|
40
|
+
steps:
|
|
41
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
42
|
+
with:
|
|
43
|
+
ref: ${{ github.ref }}
|
|
44
|
+
fetch-depth: 0 # the version comes from the repository tags
|
|
45
|
+
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7
|
|
46
|
+
with:
|
|
47
|
+
python-version: "3.14"
|
|
48
|
+
- name: Install wheel tooling
|
|
49
|
+
run: python -m pip install --upgrade cibuildwheel
|
|
50
|
+
- name: Build and smoke-test wheels
|
|
51
|
+
env:
|
|
52
|
+
CIBW_BUILD: "cp314-* cp315-*"
|
|
53
|
+
# The components require obdeect-stream of the same version, which is not on
|
|
54
|
+
# PyPI yet: install it from the same checkout before the tests.
|
|
55
|
+
CIBW_BEFORE_TEST: >-
|
|
56
|
+
${{ matrix.component != 'stream' && 'pip install {project}/src/stream' || '' }}
|
|
57
|
+
CIBW_TEST_COMMAND: python -m pytest {package}/python/tests -q
|
|
58
|
+
# Shared settings: [tool.cibuildwheel] in the root pyproject.toml.
|
|
59
|
+
run: >-
|
|
60
|
+
python -m cibuildwheel src/${{ matrix.component }} --config-file pyproject.toml
|
|
61
|
+
--output-dir wheelhouse
|
|
62
|
+
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
|
|
63
|
+
with:
|
|
64
|
+
name: wheels-${{ matrix.component }}-${{ matrix.os }}
|
|
65
|
+
path: wheelhouse/*.whl
|
|
66
|
+
|
|
67
|
+
sdist:
|
|
68
|
+
runs-on: ubuntu-24.04
|
|
69
|
+
steps:
|
|
70
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
71
|
+
with:
|
|
72
|
+
ref: ${{ github.ref }}
|
|
73
|
+
fetch-depth: 0
|
|
74
|
+
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7
|
|
75
|
+
with:
|
|
76
|
+
python-version: "3.14"
|
|
77
|
+
- name: Build the component source distributions and the obdeect package
|
|
78
|
+
run: |
|
|
79
|
+
python -m pip install --upgrade build
|
|
80
|
+
for component in stream propagation sources ray_tracing; do
|
|
81
|
+
python -m build --sdist --outdir dist "src/${component}"
|
|
82
|
+
done
|
|
83
|
+
python -m build --outdir dist .
|
|
84
|
+
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
|
|
85
|
+
with:
|
|
86
|
+
name: sdist
|
|
87
|
+
path: dist/*
|
|
88
|
+
|
|
89
|
+
# One job and GitHub environment per PyPI project: a PyPI trusted publisher is
|
|
90
|
+
# registered per project, with the environment pypi-<project>.
|
|
91
|
+
publish:
|
|
92
|
+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
|
|
93
|
+
needs: [wheels, sdist]
|
|
94
|
+
strategy:
|
|
95
|
+
matrix:
|
|
96
|
+
project: [obdeect-stream, obdeect-propagation, obdeect-sources, obdeect-ray-tracing]
|
|
97
|
+
runs-on: ubuntu-24.04
|
|
98
|
+
environment: pypi-${{ matrix.project }}
|
|
99
|
+
permissions:
|
|
100
|
+
id-token: write
|
|
101
|
+
steps:
|
|
102
|
+
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8
|
|
103
|
+
with:
|
|
104
|
+
path: all
|
|
105
|
+
merge-multiple: true
|
|
106
|
+
- name: Select the distributions of ${{ matrix.project }}
|
|
107
|
+
env:
|
|
108
|
+
PROJECT: ${{ matrix.project }}
|
|
109
|
+
run: |
|
|
110
|
+
mkdir dist
|
|
111
|
+
mv all/"${PROJECT//-/_}"-[0-9]* dist/
|
|
112
|
+
ls dist
|
|
113
|
+
- name: Publish distributions to PyPI
|
|
114
|
+
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # release/v1
|
|
115
|
+
|
|
116
|
+
# The obdeect package requires all components: publish it after them.
|
|
117
|
+
publish-obdeect:
|
|
118
|
+
needs: publish
|
|
119
|
+
runs-on: ubuntu-24.04
|
|
120
|
+
environment: pypi-obdeect
|
|
121
|
+
permissions:
|
|
122
|
+
id-token: write
|
|
123
|
+
steps:
|
|
124
|
+
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8
|
|
125
|
+
with:
|
|
126
|
+
path: all
|
|
127
|
+
merge-multiple: true
|
|
128
|
+
- name: Select the distributions of obdeect
|
|
129
|
+
run: |
|
|
130
|
+
mkdir dist
|
|
131
|
+
mv all/obdeect-[0-9]* dist/
|
|
132
|
+
ls dist
|
|
133
|
+
- name: Publish distributions to PyPI
|
|
134
|
+
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # release/v1
|
|
135
|
+
|
|
136
|
+
publish-testpypi:
|
|
137
|
+
if: >-
|
|
138
|
+
${{
|
|
139
|
+
github.event_name == 'workflow_dispatch' && inputs.publish_testpypi
|
|
140
|
+
}}
|
|
141
|
+
needs: [wheels, sdist]
|
|
142
|
+
runs-on: ubuntu-24.04
|
|
143
|
+
environment: testpypi
|
|
144
|
+
permissions:
|
|
145
|
+
id-token: write
|
|
146
|
+
steps:
|
|
147
|
+
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8
|
|
148
|
+
with:
|
|
149
|
+
path: dist
|
|
150
|
+
merge-multiple: true
|
|
151
|
+
- name: Publish distributions to TestPyPI
|
|
152
|
+
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # release/v1
|
|
153
|
+
with:
|
|
154
|
+
repository-url: https://test.pypi.org/legacy/
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: CI-tests
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
push:
|
|
6
|
+
branches:
|
|
7
|
+
- main
|
|
8
|
+
pull_request:
|
|
9
|
+
|
|
10
|
+
concurrency:
|
|
11
|
+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
12
|
+
cancel-in-progress: true
|
|
13
|
+
|
|
14
|
+
permissions:
|
|
15
|
+
contents: read
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
build-and-test:
|
|
19
|
+
strategy:
|
|
20
|
+
fail-fast: false
|
|
21
|
+
matrix:
|
|
22
|
+
runner: [ubuntu-24.04, ubuntu-24.04-arm, macos-15]
|
|
23
|
+
python-version: ['3.14', '3.15']
|
|
24
|
+
runs-on: ${{ matrix.runner }}
|
|
25
|
+
steps:
|
|
26
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
27
|
+
with:
|
|
28
|
+
fetch-depth: 0 # component versions come from the repository tags
|
|
29
|
+
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7
|
|
30
|
+
with:
|
|
31
|
+
python-version: ${{ matrix.python-version }}
|
|
32
|
+
allow-prereleases: true
|
|
33
|
+
- name: Install all components and test dependencies
|
|
34
|
+
run: >-
|
|
35
|
+
python -m pip install --upgrade pip
|
|
36
|
+
&& python -m pip install ./src/stream ./src/propagation ./src/sources
|
|
37
|
+
"./src/ray_tracing[plot]" pytest
|
|
38
|
+
- name: Configure and build all components
|
|
39
|
+
run: >-
|
|
40
|
+
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
|
|
41
|
+
&& cmake --build build --parallel
|
|
42
|
+
- name: Run native tests
|
|
43
|
+
run: ctest --test-dir build --output-on-failure
|
|
44
|
+
# One run per component (test modules of different components share file names),
|
|
45
|
+
# then the end-to-end chain.
|
|
46
|
+
- name: Run Python tests
|
|
47
|
+
run: |
|
|
48
|
+
status=0
|
|
49
|
+
for component in stream propagation sources ray_tracing; do
|
|
50
|
+
pytest "src/${component}/python/tests" || status=1
|
|
51
|
+
done
|
|
52
|
+
pytest validation || status=1
|
|
53
|
+
exit "${status}"
|
|
54
|
+
fma:
|
|
55
|
+
runs-on: ubuntu-24.04
|
|
56
|
+
steps:
|
|
57
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
58
|
+
with:
|
|
59
|
+
fetch-depth: 0
|
|
60
|
+
- name: Configure, build, and test with OBDEECT_RAY_TRACING_USE_FMA
|
|
61
|
+
run: >-
|
|
62
|
+
cmake -S . -B build-fma -DCMAKE_BUILD_TYPE=Release -DOBDEECT_RAY_TRACING_USE_FMA=ON
|
|
63
|
+
&& cmake --build build-fma --parallel
|
|
64
|
+
&& ctest --test-dir build-fma --output-on-failure
|
|
65
|
+
sanitizers:
|
|
66
|
+
runs-on: ubuntu-24.04
|
|
67
|
+
steps:
|
|
68
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
69
|
+
with:
|
|
70
|
+
fetch-depth: 0
|
|
71
|
+
- name: Install a decimal-comma locale
|
|
72
|
+
run: sudo locale-gen de_DE.UTF-8
|
|
73
|
+
- name: Configure, build, and test with sanitizers
|
|
74
|
+
env:
|
|
75
|
+
OBDEECT_RAY_TRACING_REQUIRE_COMMA_LOCALE: "1"
|
|
76
|
+
run: >-
|
|
77
|
+
cmake -S . -B build-sanitize -DCMAKE_BUILD_TYPE=Debug
|
|
78
|
+
-DCMAKE_CXX_FLAGS="-fsanitize=address,undefined -fno-omit-frame-pointer"
|
|
79
|
+
-DCMAKE_C_FLAGS="-fsanitize=address,undefined -fno-omit-frame-pointer"
|
|
80
|
+
-DCMAKE_EXE_LINKER_FLAGS="-fsanitize=address,undefined"
|
|
81
|
+
-DCMAKE_SHARED_LINKER_FLAGS="-fsanitize=address,undefined"
|
|
82
|
+
&& cmake --build build-sanitize --parallel
|
|
83
|
+
&& ctest --test-dir build-sanitize --output-on-failure
|
|
84
|
+
thread-sanitizer:
|
|
85
|
+
runs-on: ubuntu-24.04
|
|
86
|
+
steps:
|
|
87
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
88
|
+
with:
|
|
89
|
+
fetch-depth: 0
|
|
90
|
+
# GCC 13 reports a false free-nonheap-object warning in std::vector under TSan.
|
|
91
|
+
- name: Configure, build, and test with ThreadSanitizer
|
|
92
|
+
run: >-
|
|
93
|
+
cmake -S . -B build-tsan -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
94
|
+
-DCMAKE_CXX_FLAGS="-fsanitize=thread -fno-omit-frame-pointer -Wno-free-nonheap-object"
|
|
95
|
+
-DCMAKE_C_FLAGS="-fsanitize=thread -fno-omit-frame-pointer"
|
|
96
|
+
-DCMAKE_EXE_LINKER_FLAGS="-fsanitize=thread"
|
|
97
|
+
-DCMAKE_SHARED_LINKER_FLAGS="-fsanitize=thread"
|
|
98
|
+
&& cmake --build build-tsan --parallel
|
|
99
|
+
&& ctest --test-dir build-tsan --output-on-failure
|
|
100
|
+
clang-tidy:
|
|
101
|
+
runs-on: ubuntu-24.04
|
|
102
|
+
steps:
|
|
103
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
104
|
+
with:
|
|
105
|
+
fetch-depth: 0
|
|
106
|
+
- name: Configure with the compilation database
|
|
107
|
+
run: >-
|
|
108
|
+
cmake -S . -B build-tidy -DCMAKE_BUILD_TYPE=Debug -DOBDEECT_STREAM_BUILD_BENCH=ON
|
|
109
|
+
-DOBDEECT_RAY_TRACING_BUILD_BENCH=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
|
|
110
|
+
# The compilation database comes from GCC; clang-tidy ignores GCC-only warning options.
|
|
111
|
+
- name: Run clang-tidy on all components' tests and benchmarks (headers via HeaderFilterRegex)
|
|
112
|
+
run: >-
|
|
113
|
+
find src/stream/cpp/tests src/stream/cpp/bench src/propagation/cpp/tests
|
|
114
|
+
src/sources/cpp/tests src/ray_tracing/cpp/tests src/ray_tracing/cpp/bench
|
|
115
|
+
-name '*.cpp' -print0
|
|
116
|
+
| xargs -0 clang-tidy -p build-tidy --extra-arg=-Wno-unknown-warning-option
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# CMake and native build products
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
build/
|
|
3
|
+
out/
|
|
4
4
|
/compile_commands.json
|
|
5
5
|
/tmp_planning/
|
|
6
6
|
*.o
|
|
@@ -21,7 +21,7 @@ __pycache__/
|
|
|
21
21
|
.ruff_cache/
|
|
22
22
|
.venv/
|
|
23
23
|
*.egg-info/
|
|
24
|
-
|
|
24
|
+
dist/
|
|
25
25
|
|
|
26
26
|
# IDE and operating-system files
|
|
27
27
|
.DS_Store
|
|
@@ -29,4 +29,4 @@ __pycache__/
|
|
|
29
29
|
.idea/
|
|
30
30
|
|
|
31
31
|
# Documentation build
|
|
32
|
-
|
|
32
|
+
docs/_build/
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
default_language_version:
|
|
3
3
|
python: python3.14
|
|
4
4
|
|
|
5
|
+
# Component test data are reference files, not source.
|
|
6
|
+
exclude: ^src/[^/]+/cpp/tests/data/
|
|
7
|
+
|
|
5
8
|
repos:
|
|
6
9
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
7
10
|
rev: v5.0.0
|
|
@@ -26,13 +29,14 @@ repos:
|
|
|
26
29
|
rev: "v2.29.2"
|
|
27
30
|
hooks:
|
|
28
31
|
- id: pyproject-fmt
|
|
32
|
+
args: ["--max-supported-python", "3.15"]
|
|
29
33
|
# codespell
|
|
30
34
|
- repo: https://github.com/codespell-project/codespell
|
|
31
35
|
rev: v2.4.3
|
|
32
36
|
hooks:
|
|
33
37
|
- id: codespell
|
|
34
38
|
args: [
|
|
35
|
-
"--ignore-words-list=als,hel",
|
|
39
|
+
"--ignore-words-list=als,hel,arrang,aer,chec",
|
|
36
40
|
]
|
|
37
41
|
# markdownlint
|
|
38
42
|
- repo: https://github.com/igorshubovych/markdownlint-cli
|
|
@@ -51,12 +55,6 @@ repos:
|
|
|
51
55
|
"-d",
|
|
52
56
|
'{extends: default, rules: {line-length: {max: 300}, indentation: {spaces: 2, indent-sequences: consistent}, truthy: {allowed-values: ["true", "false", "on", "off"]}}}'
|
|
53
57
|
]
|
|
54
|
-
# towncrier
|
|
55
|
-
- repo: https://github.com/twisted/towncrier
|
|
56
|
-
rev: 25.8.0
|
|
57
|
-
hooks:
|
|
58
|
-
- id: towncrier-check
|
|
59
|
-
files: ^docs/changes/
|
|
60
58
|
# shellcheck
|
|
61
59
|
- repo: https://github.com/shellcheck-py/shellcheck-py
|
|
62
60
|
rev: v0.11.0.1-1
|
obdeect-0.8.0/AGENTS.md
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# obdeect Agent Guide
|
|
2
|
+
|
|
3
|
+
## Scope
|
|
4
|
+
|
|
5
|
+
`obdeect` is one project with four components, released together under one version
|
|
6
|
+
(tags `vX.Y.Z`). Each component is a portable C++20 core with a thin Python interface:
|
|
7
|
+
|
|
8
|
+
- `src/stream`: photon-stream format, EventIO to and from CORSIKA and sim_telarray.
|
|
9
|
+
- `src/propagation`: photon propagation through the atmosphere.
|
|
10
|
+
- `src/sources`: artificial light sources.
|
|
11
|
+
- `src/ray_tracing`: optical ray tracer for telescope optics and structure.
|
|
12
|
+
|
|
13
|
+
Air-shower generation, electronics, triggers and event writing are out of scope.
|
|
14
|
+
Read the relevant code and tests first. Use the component `docs/` for architecture
|
|
15
|
+
and science changes.
|
|
16
|
+
|
|
17
|
+
## Layout
|
|
18
|
+
|
|
19
|
+
Per component `src/<c>/`:
|
|
20
|
+
|
|
21
|
+
- `cpp/include/obdeect/<c>/`: C++ core headers.
|
|
22
|
+
- `cpp/bindings/core.cpp`: nanobind extension; the only C++ file that may depend on Python.
|
|
23
|
+
- `cpp/tests/`: native tests (`test_*.cpp`), helpers (`check.hpp`), fixtures in `cpp/tests/data/`.
|
|
24
|
+
- `python/obdeect/<c>/`: Python boundary (API, CLI, optional plotting).
|
|
25
|
+
- `python/tests/`: pytest suite.
|
|
26
|
+
- `docs/`: Sphinx sources.
|
|
27
|
+
|
|
28
|
+
Python packages: `obdeect.stream`, `.propagation`, `.sources`, `.ray_tracing`.
|
|
29
|
+
Wheels: `obdeect-stream`, `obdeect-propagation`, `obdeect-sources`, `obdeect-ray-tracing`.
|
|
30
|
+
`pip install obdeect` installs all. CLI: `obdeect <component> <command>`.
|
|
31
|
+
Root `docs/changes/` is the Towncrier input for all components.
|
|
32
|
+
|
|
33
|
+
## Design rules
|
|
34
|
+
|
|
35
|
+
- Never modify the main `README.md`. Suggest changes instead, do not apply them.
|
|
36
|
+
- Terminology: call a compiled telescope geometry and optical-response artifact an "optical model".
|
|
37
|
+
- Keep it simple, efficient, deterministic and portable. Prefer small, explicit data
|
|
38
|
+
structures and testable kernels over frameworks, global state, hidden defaults or
|
|
39
|
+
abstraction in the hot path.
|
|
40
|
+
- Keep the core C++20 standard-library-only. Python, plotting, file formats of other
|
|
41
|
+
programs and simulator dependencies belong at the boundary, never in a kernel.
|
|
42
|
+
- Per-photon kernels are pure functions of (chunk, parameters): no allocation, I/O,
|
|
43
|
+
Python calls or virtual dispatch per photon. Use float32 SoA photon columns (or
|
|
44
|
+
immutable compiled models and contiguous buffers where stated by the component).
|
|
45
|
+
Write kernels as templates on the scalar type. The scalar version is the reference
|
|
46
|
+
for any SIMD or GPU version.
|
|
47
|
+
- Random numbers: counter-based (Philox), keyed on (seed, stage id, event, telescope, photon index).
|
|
48
|
+
- Make units, frames, random seeds, statuses, efficiencies and loss accounting explicit.
|
|
49
|
+
Reject invalid or unsupported input; never silently discard fields.
|
|
50
|
+
- Do not hardwire CTAO names, telescope geometry, model versions, file paths or physics
|
|
51
|
+
parameters into the core, the public API or defaults. Configuration comes from
|
|
52
|
+
validated input data (simtools writes it). CTAO support is an explicit importer or
|
|
53
|
+
versioned fixture only, never required and never an implicit fallback.
|
|
54
|
+
- Plotting is optional (`.[plot]`); matplotlib is never a core dependency.
|
|
55
|
+
- Use Python >=3.14 (as in the root `pyproject.toml`). Do not fall back to earlier versions.
|
|
56
|
+
- The stream format is versioned; readers reject unknown major versions.
|
|
57
|
+
- The EventIO reader and writer are this project's own code. Use sim_telarray only as a test reference.
|
|
58
|
+
|
|
59
|
+
## Component rules
|
|
60
|
+
|
|
61
|
+
- `stream`: Results must not depend on photon ordering, chunk size or thread count.
|
|
62
|
+
Record each efficiency in the stream.
|
|
63
|
+
- `propagation`: Atmospheric effects are an ordered list of independent effects, each
|
|
64
|
+
recorded in the efficiency ledger of the stream. Extinction follows `docs/extinction.md`;
|
|
65
|
+
its tests hold the reference values.
|
|
66
|
+
- `sources`: Sources are defined by validated input (position, direction, angular,
|
|
67
|
+
spectral and pulse profiles), never by hardwired device names. Sources emit at sky,
|
|
68
|
+
telescope-sphere (G), telescope (T) or camera (C) level.
|
|
69
|
+
- `ray_tracing`: Use immutable compiled optical models and contiguous SoA buffers. After
|
|
70
|
+
output buffers are sized, the per-photon path must not allocate, do I/O, call Python or
|
|
71
|
+
dispatch virtually. Terminology: "optical model", not telescope-specific names.
|
|
72
|
+
When renaming a public concept, update implementation symbols, imports, exception
|
|
73
|
+
types, serialized keys, fixture variables and test call sites together.
|
|
74
|
+
Use `docs/VALIDATION.md` and `docs/optical-models.md` for architectural or scientific changes.
|
|
75
|
+
|
|
76
|
+
## Changes and validation
|
|
77
|
+
|
|
78
|
+
- Make the narrowest complete change and preserve unrelated work.
|
|
79
|
+
- Add a Towncrier fragment under root `docs/changes/` for changes that belong in the release notes.
|
|
80
|
+
- Add or update a focused test for every behavioural change. Analytic kernel and primitive
|
|
81
|
+
tests come before optical-model, cross-tool or performance tests.
|
|
82
|
+
- Results must not depend on photon ordering, block or chunk size, or thread count.
|
|
83
|
+
- Do not weaken tolerances or replace reference data to hide a discrepancy. Record
|
|
84
|
+
provenance for fixtures and cross-tool comparisons. Keep examples and fixtures labelled
|
|
85
|
+
and configuration-driven.
|
|
86
|
+
|
|
87
|
+
## Build, test and lint
|
|
88
|
+
|
|
89
|
+
Run from the repository root. One combined build covers all components:
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
python -m pip install -e '.[dev]' # editable install; rebuilds on C++ changes
|
|
93
|
+
cmake -S . -B build
|
|
94
|
+
cmake --build build
|
|
95
|
+
ctest --test-dir build --output-on-failure
|
|
96
|
+
python -m pytest src/<component>/python/tests # e.g. src/ray_tracing
|
|
97
|
+
ruff format --check src
|
|
98
|
+
ruff check src
|
|
99
|
+
find src -type f \( -name '*.cpp' -o -name '*.hpp' \) -print0 | \
|
|
100
|
+
xargs -0 clang-format --dry-run --Werror
|
|
101
|
+
pre-commit run --all-files
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Ruff uses a 100-character line limit (root `pyproject.toml`). Run `ruff format` before
|
|
105
|
+
`ruff check`. A clean handoff needs both `ruff format --check src` and `ruff check src`.
|
|
106
|
+
After renames, grep the Python files for removed symbols and run the focused tests first.
|
|
107
|
+
|
|
108
|
+
Run `clang-tidy -p build <changed-file>` for changed C++ files when available.
|
|
109
|
+
`pre-commit run --all-files` runs ruff, codespell, markdownlint, yamllint, actionlint,
|
|
110
|
+
pyproject-fmt, shellcheck and the towncrier check. Run the full checks for shared kernels,
|
|
111
|
+
interfaces, configuration or tooling changes.
|
|
112
|
+
|
|
113
|
+
CI also builds a `-DOBDEECT_USE_FMA=ON` Release and an AddressSanitizer/UBSan Debug build.
|
|
114
|
+
Run them locally for floating-point kernel or memory-handling changes:
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
cmake -S . -B build-sanitize -DCMAKE_BUILD_TYPE=Debug \
|
|
118
|
+
-DCMAKE_CXX_FLAGS="-fsanitize=address,undefined -fno-omit-frame-pointer" \
|
|
119
|
+
-DCMAKE_EXE_LINKER_FLAGS="-fsanitize=address,undefined"
|
|
120
|
+
cmake --build build-sanitize --parallel
|
|
121
|
+
ctest --test-dir build-sanitize --output-on-failure
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Docs build with warnings as errors, per component:
|
|
125
|
+
`sphinx-build -W --keep-going -b html src/<component>/docs src/<component>/docs/_build/html`.
|
|
126
|
+
Regenerate ray-tracing figures only from new validation results, via `src/ray_tracing/docs/figures/make_figures.py`.
|