obdeect 0.7.2__tar.gz → 0.9.2__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.9.2}/.clang-tidy +1 -1
- obdeect-0.9.2/.github/dependabot.yml +13 -0
- {obdeect-0.7.2 → obdeect-0.9.2}/.github/workflows/changelog.yml +4 -5
- obdeect-0.9.2/.github/workflows/ci.yml +39 -0
- {obdeect-0.7.2 → obdeect-0.9.2}/.github/workflows/docs.yml +10 -11
- obdeect-0.9.2/.github/workflows/pypi.yml +146 -0
- obdeect-0.9.2/.github/workflows/tests.yml +153 -0
- {obdeect-0.7.2 → obdeect-0.9.2}/.gitignore +7 -4
- {obdeect-0.7.2 → obdeect-0.9.2}/.pre-commit-config.yaml +9 -11
- obdeect-0.9.2/AGENTS.md +129 -0
- obdeect-0.9.2/CHANGELOG.md +348 -0
- obdeect-0.9.2/CITATION.cff +22 -0
- obdeect-0.9.2/CMakeLists.txt +12 -0
- {obdeect-0.7.2 → obdeect-0.9.2}/CMakePresets.json +11 -1
- obdeect-0.9.2/PKG-INFO +78 -0
- obdeect-0.9.2/README.md +60 -0
- {obdeect-0.7.2 → obdeect-0.9.2}/docs/_static/obdeect.css +16 -0
- {obdeect-0.7.2 → obdeect-0.9.2}/docs/build_versions.py +7 -1
- {obdeect-0.7.2 → obdeect-0.9.2}/docs/conf.py +4 -6
- obdeect-0.9.2/docs/index.md +155 -0
- obdeect-0.9.2/docs/propagation/curvature.md +303 -0
- obdeect-0.9.2/docs/propagation/extinction.md +104 -0
- obdeect-0.9.2/docs/propagation/index.md +77 -0
- obdeect-0.9.2/docs/propagation/legacy-tables.md +35 -0
- obdeect-0.9.2/docs/propagation/propagation.md +231 -0
- obdeect-0.9.2/docs/propagation/refraction.md +133 -0
- obdeect-0.9.2/docs/propagation/scattering.md +133 -0
- obdeect-0.9.2/docs/ray-tracing/VALIDATION.md +339 -0
- obdeect-0.9.2/docs/ray-tracing/air-shower-photons.md +117 -0
- obdeect-0.9.2/docs/ray-tracing/analysis-v0.7.2.md +592 -0
- obdeect-0.9.2/docs/ray-tracing/api.md +42 -0
- obdeect-0.9.2/docs/ray-tracing/batch-tracing.md +62 -0
- obdeect-0.9.2/docs/ray-tracing/index.md +103 -0
- obdeect-0.9.2/docs/ray-tracing/light-sources.md +75 -0
- obdeect-0.9.2/docs/ray-tracing/limitations.md +60 -0
- obdeect-0.9.2/docs/ray-tracing/optical-elements.md +79 -0
- obdeect-0.9.2/docs/ray-tracing/optical-models.md +45 -0
- obdeect-0.9.2/docs/ray-tracing/optics.md +56 -0
- obdeect-0.9.2/docs/ray-tracing/photon-stream.md +115 -0
- {obdeect-0.7.2/docs → obdeect-0.9.2/docs/ray-tracing}/python-guide.md +11 -16
- obdeect-0.9.2/docs/ray-tracing/shadowing.md +53 -0
- {obdeect-0.7.2/docs → obdeect-0.9.2/docs/ray-tracing}/telescopes.md +14 -17
- obdeect-0.9.2/docs/ray-tracing/usage.md +31 -0
- obdeect-0.9.2/docs/sources/index.md +119 -0
- obdeect-0.9.2/docs/sources/programs/beam-scan.md +23 -0
- obdeect-0.9.2/docs/sources/programs/flasher.md +72 -0
- obdeect-0.9.2/docs/sources/programs/laser-beam.md +42 -0
- obdeect-0.9.2/docs/sources/programs/led.md +44 -0
- obdeect-0.9.2/docs/sources/programs/muon-track.md +64 -0
- obdeect-0.9.2/docs/sources/programs/night-sky.md +26 -0
- obdeect-0.9.2/docs/sources/programs/point-source.md +33 -0
- obdeect-0.9.2/docs/sources/sources.md +85 -0
- obdeect-0.9.2/docs/sources/spec/background.md +25 -0
- obdeect-0.9.2/docs/sources/spec/cli-conventions.md +90 -0
- obdeect-0.9.2/docs/sources/spec/conventions.md +68 -0
- obdeect-0.9.2/docs/sources/spec/distributions.md +68 -0
- obdeect-0.9.2/docs/sources/spec/index.md +52 -0
- obdeect-0.9.2/docs/sources/spec/python-api.md +58 -0
- obdeect-0.9.2/docs/sources/spec/sky-sources.md +45 -0
- obdeect-0.9.2/docs/sources/spec/source-core.md +107 -0
- obdeect-0.9.2/docs/sources/spec/stream-writer.md +77 -0
- obdeect-0.9.2/docs/sources/spec/tool-beam-scan.md +27 -0
- obdeect-0.9.2/docs/sources/spec/tool-flasher.md +56 -0
- obdeect-0.9.2/docs/sources/spec/tool-laser-beam.md +49 -0
- obdeect-0.9.2/docs/sources/spec/tool-led.md +68 -0
- obdeect-0.9.2/docs/sources/spec/tool-muon-track.md +63 -0
- obdeect-0.9.2/docs/sources/spec/tool-night-sky.md +25 -0
- obdeect-0.9.2/docs/sources/spec/tool-point-source.md +35 -0
- obdeect-0.9.2/docs/sources/spec/track.md +37 -0
- obdeect-0.9.2/docs/stream/command-line.md +123 -0
- obdeect-0.9.2/docs/stream/efficiency-status.md +53 -0
- obdeect-0.9.2/docs/stream/format.md +113 -0
- obdeect-0.9.2/docs/stream/grisu.md +60 -0
- obdeect-0.9.2/docs/stream/index.md +81 -0
- obdeect-0.9.2/docs/stream/programming.md +173 -0
- obdeect-0.9.2/docs/stream/random-numbers.md +55 -0
- obdeect-0.9.2/docs/test_release_metadata.py +38 -0
- obdeect-0.9.2/docs/user-guide/index.md +41 -0
- obdeect-0.9.2/docs/user-guide/installation.md +64 -0
- obdeect-0.9.2/docs/user-guide/pipelines.md +93 -0
- obdeect-0.9.2/docs/user-guide/quickstart.md +41 -0
- obdeect-0.9.2/pyproject.toml +70 -0
- obdeect-0.9.2/src/propagation/CMakeLists.txt +97 -0
- obdeect-0.9.2/src/propagation/README.md +21 -0
- obdeect-0.9.2/src/propagation/cpp/bindings/core.cpp +26 -0
- obdeect-0.9.2/src/propagation/cpp/bindings/extinction_bindings.hpp +238 -0
- obdeect-0.9.2/src/propagation/cpp/bindings/profile_bindings.hpp +126 -0
- obdeect-0.9.2/src/propagation/cpp/bindings/propagator_bindings.hpp +138 -0
- obdeect-0.9.2/src/propagation/cpp/bindings/scattering_bindings.hpp +124 -0
- obdeect-0.9.2/src/propagation/cpp/include/obdeect/propagation/curved_refraction.hpp +354 -0
- obdeect-0.9.2/src/propagation/cpp/include/obdeect/propagation/extinction.hpp +136 -0
- obdeect-0.9.2/src/propagation/cpp/include/obdeect/propagation/parallel.hpp +67 -0
- obdeect-0.9.2/src/propagation/cpp/include/obdeect/propagation/pipeline.hpp +227 -0
- obdeect-0.9.2/src/propagation/cpp/include/obdeect/propagation/profile.hpp +300 -0
- obdeect-0.9.2/src/propagation/cpp/include/obdeect/propagation/propagator.hpp +1189 -0
- obdeect-0.9.2/src/propagation/cpp/include/obdeect/propagation/refraction.hpp +234 -0
- obdeect-0.9.2/src/propagation/cpp/include/obdeect/propagation/scattering.hpp +618 -0
- obdeect-0.9.2/src/propagation/cpp/include/obdeect/propagation/sky.hpp +351 -0
- obdeect-0.9.2/src/propagation/cpp/include/obdeect/propagation/streams.hpp +31 -0
- obdeect-0.9.2/src/propagation/cpp/include/obdeect/propagation/thinning.hpp +212 -0
- obdeect-0.9.2/src/propagation/cpp/include/obdeect/propagation/timing.hpp +103 -0
- obdeect-0.9.2/src/propagation/cpp/include/obdeect/propagation/transmission.hpp +462 -0
- obdeect-0.9.2/src/propagation/cpp/include/obdeect/propagation/version.hpp +13 -0
- obdeect-0.9.2/src/propagation/cpp/include/obdeect/propagation/wavelength.hpp +61 -0
- obdeect-0.9.2/src/propagation/cpp/tests/data/atm_trans_2000_1_10_0_0_2000.dat +815 -0
- obdeect-0.9.2/src/propagation/cpp/tests/data/atmprof_ecmwf_north_winter_fixed.dat +74 -0
- obdeect-0.9.2/src/propagation/cpp/tests/data/scattering_exponential.dat +1229 -0
- obdeect-0.9.2/src/propagation/cpp/tests/test_curvature.cpp +490 -0
- obdeect-0.9.2/src/propagation/cpp/tests/test_curvature_modes.cpp +1199 -0
- obdeect-0.9.2/src/propagation/cpp/tests/test_curved_refraction.cpp +354 -0
- obdeect-0.9.2/src/propagation/cpp/tests/test_physics.cpp +380 -0
- obdeect-0.9.2/src/propagation/cpp/tests/test_pipeline.cpp +235 -0
- obdeect-0.9.2/src/propagation/cpp/tests/test_profile.cpp +205 -0
- obdeect-0.9.2/src/propagation/cpp/tests/test_propagator.cpp +1287 -0
- obdeect-0.9.2/src/propagation/cpp/tests/test_refraction.cpp +155 -0
- obdeect-0.9.2/src/propagation/cpp/tests/test_scattering.cpp +616 -0
- obdeect-0.9.2/src/propagation/cpp/tests/test_stream_contract.cpp +15 -0
- obdeect-0.9.2/src/propagation/cpp/tests/test_telescopes.cpp +304 -0
- obdeect-0.9.2/src/propagation/cpp/tests/test_thinning.cpp +311 -0
- obdeect-0.9.2/src/propagation/cpp/tests/test_timing.cpp +103 -0
- obdeect-0.9.2/src/propagation/cpp/tests/test_transmission.cpp +282 -0
- obdeect-0.9.2/src/propagation/cpp/tests/test_version.cpp +14 -0
- obdeect-0.9.2/src/propagation/cpp/tools/propagate.cpp +329 -0
- obdeect-0.9.2/src/propagation/pyproject.toml +47 -0
- obdeect-0.9.2/src/propagation/python/obdeect/propagation/__init__.py +23 -0
- obdeect-0.9.2/src/propagation/python/obdeect/propagation/cli.py +23 -0
- obdeect-0.9.2/src/propagation/python/obdeect/propagation/convert.py +267 -0
- obdeect-0.9.2/src/propagation/python/obdeect/propagation/extinction.py +113 -0
- obdeect-0.9.2/src/propagation/python/obdeect/propagation/profile.py +108 -0
- obdeect-0.9.2/src/propagation/python/obdeect/propagation/propagation.py +185 -0
- obdeect-0.9.2/src/propagation/python/obdeect/propagation/scattering.py +86 -0
- obdeect-0.9.2/src/propagation/python/tests/test_convert.py +213 -0
- obdeect-0.9.2/src/propagation/python/tests/test_extinction.py +350 -0
- obdeect-0.9.2/src/propagation/python/tests/test_import.py +9 -0
- obdeect-0.9.2/src/propagation/python/tests/test_profile.py +171 -0
- obdeect-0.9.2/src/propagation/python/tests/test_propagate.py +1194 -0
- obdeect-0.9.2/src/propagation/python/tests/test_scattering.py +173 -0
- obdeect-0.9.2/src/propagation/python/tests/test_stream_contract.py +30 -0
- obdeect-0.9.2/src/ray_tracing/CMakeLists.txt +122 -0
- obdeect-0.9.2/src/ray_tracing/README.md +25 -0
- {obdeect-0.7.2 → obdeect-0.9.2/src/ray_tracing}/cpp/bench/bench_trace.cpp +24 -14
- {obdeect-0.7.2 → obdeect-0.9.2/src/ray_tracing}/cpp/bench/replay.cpp +18 -7
- {obdeect-0.7.2 → obdeect-0.9.2/src/ray_tracing}/cpp/bindings/README.md +1 -1
- {obdeect-0.7.2 → obdeect-0.9.2/src/ray_tracing}/cpp/bindings/core.cpp +109 -98
- {obdeect-0.7.2/cpp/include/obdeect → obdeect-0.9.2/src/ray_tracing/cpp/include/obdeect/ray_tracing}/bounds.hpp +3 -3
- {obdeect-0.7.2/cpp/include/obdeect → obdeect-0.9.2/src/ray_tracing/cpp/include/obdeect/ray_tracing}/bunches.hpp +20 -16
- {obdeect-0.7.2/cpp/include/obdeect → obdeect-0.9.2/src/ray_tracing/cpp/include/obdeect/ray_tracing}/json.hpp +23 -11
- {obdeect-0.7.2/cpp/include/obdeect → obdeect-0.9.2/src/ray_tracing/cpp/include/obdeect/ray_tracing}/model.hpp +5 -5
- {obdeect-0.7.2/cpp/include/obdeect → obdeect-0.9.2/src/ray_tracing/cpp/include/obdeect/ray_tracing}/model_json.hpp +7 -6
- {obdeect-0.7.2/cpp/include/obdeect → obdeect-0.9.2/src/ray_tracing/cpp/include/obdeect/ray_tracing}/obscurers.hpp +8 -8
- obdeect-0.9.2/src/ray_tracing/cpp/include/obdeect/ray_tracing/random.hpp +56 -0
- {obdeect-0.7.2/cpp/include/obdeect → obdeect-0.9.2/src/ray_tracing/cpp/include/obdeect/ray_tracing}/source.hpp +6 -5
- {obdeect-0.7.2/cpp/include/obdeect → obdeect-0.9.2/src/ray_tracing/cpp/include/obdeect/ray_tracing}/surfaces.hpp +13 -13
- {obdeect-0.7.2/cpp/include/obdeect → obdeect-0.9.2/src/ray_tracing/cpp/include/obdeect/ray_tracing}/table.hpp +2 -2
- {obdeect-0.7.2/cpp/include/obdeect → obdeect-0.9.2/src/ray_tracing/cpp/include/obdeect/ray_tracing}/trace.hpp +67 -26
- obdeect-0.9.2/src/ray_tracing/cpp/include/obdeect/ray_tracing/vec.hpp +34 -0
- {obdeect-0.7.2 → obdeect-0.9.2/src/ray_tracing}/cpp/tests/legacy_asphere.hpp +2 -2
- {obdeect-0.7.2 → obdeect-0.9.2/src/ray_tracing}/cpp/tests/test_asphere_steps.cpp +4 -4
- {obdeect-0.7.2 → obdeect-0.9.2/src/ray_tracing}/cpp/tests/test_bounds.cpp +3 -3
- {obdeect-0.7.2 → obdeect-0.9.2/src/ray_tracing}/cpp/tests/test_kernels.cpp +4 -4
- {obdeect-0.7.2 → obdeect-0.9.2/src/ray_tracing}/cpp/tests/test_model_json.cpp +33 -3
- {obdeect-0.7.2 → obdeect-0.9.2/src/ray_tracing}/cpp/tests/test_trace.cpp +83 -4
- {obdeect-0.7.2 → obdeect-0.9.2/src/ray_tracing}/pyproject.toml +15 -40
- obdeect-0.9.2/src/ray_tracing/python/obdeect/ray_tracing/__init__.py +18 -0
- obdeect-0.9.2/src/ray_tracing/python/obdeect/ray_tracing/cli.py +316 -0
- {obdeect-0.7.2/python/obdeect → obdeect-0.9.2/src/ray_tracing/python/obdeect/ray_tracing}/compiler.py +5 -3
- {obdeect-0.7.2/python/obdeect → obdeect-0.9.2/src/ray_tracing/python/obdeect/ray_tracing}/formats.py +1 -1
- {obdeect-0.7.2/python/obdeect → obdeect-0.9.2/src/ray_tracing/python/obdeect/ray_tracing}/model.py +123 -33
- {obdeect-0.7.2/python/obdeect → obdeect-0.9.2/src/ray_tracing/python/obdeect/ray_tracing}/plot.py +1 -2
- {obdeect-0.7.2/python/obdeect → obdeect-0.9.2/src/ray_tracing/python/obdeect/ray_tracing}/propagation.py +1 -1
- {obdeect-0.7.2/python/obdeect → obdeect-0.9.2/src/ray_tracing/python/obdeect/ray_tracing}/psf.py +1 -2
- {obdeect-0.7.2/python/obdeect → obdeect-0.9.2/src/ray_tracing/python/obdeect/ray_tracing}/repository.py +2 -2
- obdeect-0.9.2/src/ray_tracing/python/obdeect/ray_tracing/stream.py +782 -0
- {obdeect-0.7.2 → obdeect-0.9.2/src/ray_tracing}/python/tests/test_axes_offset.py +2 -2
- {obdeect-0.7.2 → obdeect-0.9.2/src/ray_tracing}/python/tests/test_bunches.py +75 -12
- {obdeect-0.7.2 → obdeect-0.9.2/src/ray_tracing}/python/tests/test_compiler.py +7 -2
- {obdeect-0.7.2 → obdeect-0.9.2/src/ray_tracing}/python/tests/test_docs_versions.py +1 -1
- {obdeect-0.7.2 → obdeect-0.9.2/src/ray_tracing}/python/tests/test_formats.py +2 -2
- {obdeect-0.7.2 → obdeect-0.9.2/src/ray_tracing}/python/tests/test_model.py +15 -12
- obdeect-0.9.2/src/ray_tracing/python/tests/test_propagation.py +60 -0
- obdeect-0.9.2/src/ray_tracing/python/tests/test_release_metadata.py +20 -0
- obdeect-0.9.2/src/ray_tracing/python/tests/test_stream.py +1090 -0
- obdeect-0.9.2/src/sources/CMakeLists.txt +112 -0
- obdeect-0.9.2/src/sources/README.md +26 -0
- obdeect-0.9.2/src/sources/cpp/bindings/core.cpp +228 -0
- obdeect-0.9.2/src/sources/cpp/include/obdeect/sources/background.hpp +102 -0
- obdeect-0.9.2/src/sources/cpp/include/obdeect/sources/cli.hpp +92 -0
- obdeect-0.9.2/src/sources/cpp/include/obdeect/sources/density.hpp +345 -0
- obdeect-0.9.2/src/sources/cpp/include/obdeect/sources/emission_stream.hpp +193 -0
- obdeect-0.9.2/src/sources/cpp/include/obdeect/sources/programs/beam-scan.hpp +71 -0
- obdeect-0.9.2/src/sources/cpp/include/obdeect/sources/programs/flasher.hpp +235 -0
- obdeect-0.9.2/src/sources/cpp/include/obdeect/sources/programs/laser-beam.hpp +151 -0
- obdeect-0.9.2/src/sources/cpp/include/obdeect/sources/programs/led.hpp +384 -0
- obdeect-0.9.2/src/sources/cpp/include/obdeect/sources/programs/muon-track.hpp +479 -0
- obdeect-0.9.2/src/sources/cpp/include/obdeect/sources/programs/night-sky.hpp +81 -0
- obdeect-0.9.2/src/sources/cpp/include/obdeect/sources/programs/point-source.hpp +99 -0
- obdeect-0.9.2/src/sources/cpp/include/obdeect/sources/programs/stream_output.hpp +319 -0
- obdeect-0.9.2/src/sources/cpp/include/obdeect/sources/sky_sources.hpp +235 -0
- obdeect-0.9.2/src/sources/cpp/include/obdeect/sources/source.hpp +363 -0
- obdeect-0.9.2/src/sources/cpp/include/obdeect/sources/streams.hpp +27 -0
- obdeect-0.9.2/src/sources/cpp/include/obdeect/sources/track.hpp +136 -0
- obdeect-0.9.2/src/sources/cpp/include/obdeect/sources/vec3.hpp +27 -0
- obdeect-0.9.2/src/sources/cpp/include/obdeect/sources/version.hpp +13 -0
- obdeect-0.9.2/src/sources/cpp/tests/program_stream.hpp +85 -0
- obdeect-0.9.2/src/sources/cpp/tests/sky_stream_check.hpp +50 -0
- obdeect-0.9.2/src/sources/cpp/tests/test_beam-scan.cpp +120 -0
- obdeect-0.9.2/src/sources/cpp/tests/test_density.cpp +175 -0
- obdeect-0.9.2/src/sources/cpp/tests/test_flasher.cpp +425 -0
- obdeect-0.9.2/src/sources/cpp/tests/test_laser-beam.cpp +212 -0
- obdeect-0.9.2/src/sources/cpp/tests/test_led.cpp +218 -0
- obdeect-0.9.2/src/sources/cpp/tests/test_muon-track.cpp +449 -0
- obdeect-0.9.2/src/sources/cpp/tests/test_night-sky.cpp +282 -0
- obdeect-0.9.2/src/sources/cpp/tests/test_point-source.cpp +233 -0
- obdeect-0.9.2/src/sources/cpp/tests/test_sky_args.cpp +154 -0
- obdeect-0.9.2/src/sources/cpp/tests/test_source.cpp +401 -0
- obdeect-0.9.2/src/sources/cpp/tests/test_stream_contract.cpp +50 -0
- obdeect-0.9.2/src/sources/cpp/tests/test_version.cpp +14 -0
- obdeect-0.9.2/src/sources/cpp/tools/beam-scan.cpp +52 -0
- obdeect-0.9.2/src/sources/cpp/tools/flasher.cpp +129 -0
- obdeect-0.9.2/src/sources/cpp/tools/laser-beam.cpp +95 -0
- obdeect-0.9.2/src/sources/cpp/tools/led.cpp +138 -0
- obdeect-0.9.2/src/sources/cpp/tools/muon-track.cpp +37 -0
- obdeect-0.9.2/src/sources/cpp/tools/night-sky.cpp +75 -0
- obdeect-0.9.2/src/sources/cpp/tools/point-source.cpp +100 -0
- obdeect-0.9.2/src/sources/cpp/tools/sky_args.hpp +180 -0
- obdeect-0.9.2/src/sources/cpp/tools/telpos_file.hpp +61 -0
- obdeect-0.9.2/src/sources/cpp/tools/tool_args.hpp +73 -0
- obdeect-0.9.2/src/sources/pyproject.toml +47 -0
- obdeect-0.9.2/src/sources/python/obdeect/sources/__init__.py +5 -0
- obdeect-0.9.2/src/sources/python/obdeect/sources/cli.py +21 -0
- obdeect-0.9.2/src/sources/python/obdeect/sources/plot.py +57 -0
- obdeect-0.9.2/src/sources/python/obdeect/sources/source.py +263 -0
- obdeect-0.9.2/src/sources/python/tests/test_core_arity.py +27 -0
- obdeect-0.9.2/src/sources/python/tests/test_import.py +9 -0
- obdeect-0.9.2/src/sources/python/tests/test_plot.py +30 -0
- obdeect-0.9.2/src/sources/python/tests/test_source.py +325 -0
- obdeect-0.9.2/src/sources/python/tests/test_stream_contract.py +34 -0
- obdeect-0.9.2/src/stream/CMakeLists.txt +205 -0
- obdeect-0.9.2/src/stream/README.md +25 -0
- obdeect-0.9.2/src/stream/cmake/obdeect_stream-config.cmake.in +3 -0
- obdeect-0.9.2/src/stream/cmake/version.hpp.in +11 -0
- obdeect-0.9.2/src/stream/cpp/bench/bench_stream.cpp +119 -0
- obdeect-0.9.2/src/stream/cpp/bench/gen_corsika.cpp +138 -0
- obdeect-0.9.2/src/stream/cpp/bindings/core.cpp +444 -0
- obdeect-0.9.2/src/stream/cpp/capi/obdeect_stream_c.cpp +674 -0
- obdeect-0.9.2/src/stream/cpp/include/obdeect/stream/atmprof.hpp +76 -0
- obdeect-0.9.2/src/stream/cpp/include/obdeect/stream/cli.hpp +116 -0
- obdeect-0.9.2/src/stream/cpp/include/obdeect/stream/constants.hpp +21 -0
- obdeect-0.9.2/src/stream/cpp/include/obdeect/stream/corsika.hpp +647 -0
- obdeect-0.9.2/src/stream/cpp/include/obdeect/stream/eventio.hpp +826 -0
- obdeect-0.9.2/src/stream/cpp/include/obdeect/stream/format.hpp +58 -0
- obdeect-0.9.2/src/stream/cpp/include/obdeect/stream/grisu.hpp +575 -0
- obdeect-0.9.2/src/stream/cpp/include/obdeect/stream/obdeect_stream.h +218 -0
- obdeect-0.9.2/src/stream/cpp/include/obdeect/stream/parse.hpp +57 -0
- obdeect-0.9.2/src/stream/cpp/include/obdeect/stream/photons.hpp +99 -0
- obdeect-0.9.2/src/stream/cpp/include/obdeect/stream/random.hpp +66 -0
- obdeect-0.9.2/src/stream/cpp/include/obdeect/stream/simtel.hpp +1141 -0
- obdeect-0.9.2/src/stream/cpp/include/obdeect/stream/stages.hpp +40 -0
- obdeect-0.9.2/src/stream/cpp/include/obdeect/stream/stdin_buffer.hpp +49 -0
- obdeect-0.9.2/src/stream/cpp/include/obdeect/stream/stream.hpp +599 -0
- obdeect-0.9.2/src/stream/cpp/include/obdeect/stream/telpos.hpp +15 -0
- obdeect-0.9.2/src/stream/cpp/include/obdeect/stream/vec3.hpp +64 -0
- obdeect-0.9.2/src/stream/cpp/include/obdeect/stream/wavelength.hpp +15 -0
- obdeect-0.9.2/src/stream/cpp/tests/consumer/CMakeLists.txt +13 -0
- obdeect-0.9.2/src/stream/cpp/tests/consumer/main.cpp +31 -0
- obdeect-0.9.2/src/stream/cpp/tests/consumer/main_c.c +6 -0
- obdeect-0.9.2/src/stream/cpp/tests/data/conformance/bad_magic.pst +0 -0
- obdeect-0.9.2/src/stream/cpp/tests/data/conformance/expected.json +130 -0
- obdeect-0.9.2/src/stream/cpp/tests/data/conformance/make_conformance.py +137 -0
- obdeect-0.9.2/src/stream/cpp/tests/data/conformance/too_many_rows.pst +0 -0
- obdeect-0.9.2/src/stream/cpp/tests/data/conformance/truncated_chunk.pst +0 -0
- obdeect-0.9.2/src/stream/cpp/tests/data/conformance/unknown_major.pst +0 -0
- obdeect-0.9.2/src/stream/cpp/tests/data/conformance/valid.pst +0 -0
- obdeect-0.9.2/src/stream/cpp/tests/test_capi.c +327 -0
- obdeect-0.9.2/src/stream/cpp/tests/test_capi_cpp.cpp +177 -0
- obdeect-0.9.2/src/stream/cpp/tests/test_cli.cpp +81 -0
- obdeect-0.9.2/src/stream/cpp/tests/test_corsika.cpp +556 -0
- obdeect-0.9.2/src/stream/cpp/tests/test_eventio.cpp +464 -0
- obdeect-0.9.2/src/stream/cpp/tests/test_format.cpp +128 -0
- obdeect-0.9.2/src/stream/cpp/tests/test_grisu.cpp +338 -0
- obdeect-0.9.2/src/stream/cpp/tests/test_parse.cpp +41 -0
- obdeect-0.9.2/src/stream/cpp/tests/test_simtel.cpp +1275 -0
- obdeect-0.9.2/src/stream/cpp/tests/test_stages.cpp +18 -0
- obdeect-0.9.2/src/stream/cpp/tests/test_stream.cpp +374 -0
- obdeect-0.9.2/src/stream/cpp/tests/test_version.cpp +11 -0
- obdeect-0.9.2/src/stream/cpp/tests/test_wavelength.cpp +49 -0
- obdeect-0.9.2/src/stream/cpp/tools/corsika2ps.cpp +73 -0
- obdeect-0.9.2/src/stream/cpp/tools/ps2grisu.cpp +113 -0
- obdeect-0.9.2/src/stream/cpp/tools/ps2simtel.cpp +126 -0
- obdeect-0.9.2/src/stream/cpp/tools/ps_cat.cpp +168 -0
- obdeect-0.9.2/src/stream/cpp/tools/ps_tee.cpp +122 -0
- obdeect-0.9.2/src/stream/cpp/tools/tool_version.hpp +16 -0
- obdeect-0.9.2/src/stream/pyproject.toml +45 -0
- obdeect-0.9.2/src/stream/python/obdeect/stream/__init__.py +28 -0
- obdeect-0.9.2/src/stream/python/obdeect/stream/__main__.py +60 -0
- obdeect-0.9.2/src/stream/python/obdeect/stream/_package.py +27 -0
- obdeect-0.9.2/src/stream/python/obdeect/stream/cli.py +160 -0
- obdeect-0.9.2/src/stream/python/obdeect/stream/convert.py +111 -0
- obdeect-0.9.2/src/stream/python/obdeect/stream/stage.py +143 -0
- obdeect-0.9.2/src/stream/python/obdeect/stream/stream.py +95 -0
- obdeect-0.9.2/src/stream/python/tests/test_cli.py +68 -0
- obdeect-0.9.2/src/stream/python/tests/test_cmake_package.py +51 -0
- obdeect-0.9.2/src/stream/python/tests/test_constants.py +23 -0
- obdeect-0.9.2/src/stream/python/tests/test_convert.py +553 -0
- obdeect-0.9.2/src/stream/python/tests/test_grisu.py +140 -0
- obdeect-0.9.2/src/stream/python/tests/test_import.py +9 -0
- obdeect-0.9.2/src/stream/python/tests/test_stage.py +241 -0
- obdeect-0.9.2/src/stream/python/tests/test_stream.py +284 -0
- obdeect-0.7.2/.editorconfig +0 -12
- 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/cpp/include/obdeect/vec.hpp +0 -42
- 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/python/obdeect/__init__.py +0 -26
- obdeect-0.7.2/python/obdeect/cli.py +0 -175
- obdeect-0.7.2/python/tests/test_propagation.py +0 -31
- {obdeect-0.7.2 → obdeect-0.9.2}/.clang-format +0 -0
- {obdeect-0.7.2 → obdeect-0.9.2}/.gitattributes +0 -0
- {obdeect-0.7.2 → obdeect-0.9.2}/LICENSE +0 -0
- {obdeect-0.7.2 → obdeect-0.9.2}/docs/_static/figures/baffle_area.png +0 -0
- {obdeect-0.7.2 → obdeect-0.9.2}/docs/_static/figures/mst_shadowing.png +0 -0
- {obdeect-0.7.2 → obdeect-0.9.2}/docs/_static/figures/telescope_lst.png +0 -0
- {obdeect-0.7.2 → obdeect-0.9.2}/docs/_static/figures/telescope_mst_flashcam.png +0 -0
- {obdeect-0.7.2 → obdeect-0.9.2}/docs/_static/figures/telescope_mst_nectarcam.png +0 -0
- {obdeect-0.7.2 → obdeect-0.9.2}/docs/_static/figures/telescope_sct.png +0 -0
- {obdeect-0.7.2 → obdeect-0.9.2}/docs/_static/figures/telescope_sst.png +0 -0
- {obdeect-0.7.2 → obdeect-0.9.2}/docs/_static/figures/telescopes-provenance.json +0 -0
- {obdeect-0.7.2 → obdeect-0.9.2}/docs/_static/figures/validation_psf_area.png +0 -0
- {obdeect-0.7.2 → obdeect-0.9.2}/docs/_static/images/obdeect_21ratio_large.jpg +0 -0
- {obdeect-0.7.2 → obdeect-0.9.2}/docs/_static/images/obdeect_21ratio_small.jpg +0 -0
- {obdeect-0.7.2 → obdeect-0.9.2}/docs/_static/images/obdeect_large.jpg +0 -0
- {obdeect-0.7.2 → obdeect-0.9.2}/docs/_static/images/obdeect_logo.jpg +0 -0
- {obdeect-0.7.2 → obdeect-0.9.2}/docs/_static/images/obdeect_small.jpg +0 -0
- {obdeect-0.7.2 → obdeect-0.9.2}/docs/changelog.md +0 -0
- {obdeect-0.7.2 → obdeect-0.9.2}/docs/changes/.gitkeep +0 -0
- {obdeect-0.7.2 → obdeect-0.9.2}/docs/figures/make_figures.py +0 -0
- {obdeect-0.7.2 → obdeect-0.9.2}/docs/figures/telescopes.yml +0 -0
- {obdeect-0.7.2 → obdeect-0.9.2/src/ray_tracing}/cpp/bench/replay_compare.hpp +0 -0
- {obdeect-0.7.2 → obdeect-0.9.2/src/ray_tracing}/cpp/tests/data/make_polynomial_reference.py +0 -0
- {obdeect-0.7.2 → obdeect-0.9.2/src/ray_tracing}/cpp/tests/test_replay_compare.cpp +0 -0
- {obdeect-0.7.2/python/obdeect → obdeect-0.9.2/src/ray_tracing/python/obdeect/ray_tracing}/simtel_tables.py +0 -0
- {obdeect-0.7.2 → obdeect-0.9.2/src/ray_tracing}/python/tests/telescopes.py +0 -0
- {obdeect-0.7.2 → obdeect-0.9.2/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
|
|
@@ -17,22 +17,21 @@ concurrency:
|
|
|
17
17
|
|
|
18
18
|
jobs:
|
|
19
19
|
build:
|
|
20
|
-
runs-on: ubuntu-
|
|
20
|
+
runs-on: ubuntu-24.04 # builds the C++ extensions for autodoc
|
|
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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
python -m pip install
|
|
35
|
-
python -m pytest -q python/tests/test_docs_versions.py
|
|
30
|
+
# Autodoc imports only obdeect.ray_tracing (and obdeect.stream, which it requires).
|
|
31
|
+
- name: Install the documented packages with the documentation tools
|
|
32
|
+
run: >-
|
|
33
|
+
python -m pip install --upgrade pip
|
|
34
|
+
&& python -m pip install ./src/stream "./src/ray_tracing[docs]"
|
|
36
35
|
- name: Build versioned site
|
|
37
36
|
env:
|
|
38
37
|
DOCS_BASE_URL: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}
|
|
@@ -45,7 +44,7 @@ jobs:
|
|
|
45
44
|
args+=(--dev-only)
|
|
46
45
|
fi
|
|
47
46
|
python docs/build_versions.py "${args[@]}"
|
|
48
|
-
- uses: actions/upload-pages-artifact@v5
|
|
47
|
+
- uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5
|
|
49
48
|
with:
|
|
50
49
|
path: docs/_build/site
|
|
51
50
|
|
|
@@ -61,4 +60,4 @@ jobs:
|
|
|
61
60
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
62
61
|
steps:
|
|
63
62
|
- id: deployment
|
|
64
|
-
uses: actions/deploy-pages@v5
|
|
63
|
+
uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5
|
|
@@ -0,0 +1,146 @@
|
|
|
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
|
+
|
|
19
|
+
concurrency:
|
|
20
|
+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
21
|
+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
22
|
+
|
|
23
|
+
permissions:
|
|
24
|
+
contents: read
|
|
25
|
+
|
|
26
|
+
jobs:
|
|
27
|
+
wheels:
|
|
28
|
+
strategy:
|
|
29
|
+
fail-fast: false
|
|
30
|
+
matrix:
|
|
31
|
+
# Pull requests: one platform (the tests cover the others); releases: all.
|
|
32
|
+
os: ${{ github.event_name == 'pull_request' && fromJSON('["ubuntu-24.04"]') || fromJSON('["ubuntu-24.04", "ubuntu-24.04-arm", "macos-15"]') }}
|
|
33
|
+
component: [stream, propagation, sources, ray_tracing]
|
|
34
|
+
runs-on: ${{ matrix.os }}
|
|
35
|
+
steps:
|
|
36
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
37
|
+
with:
|
|
38
|
+
ref: ${{ github.ref }}
|
|
39
|
+
fetch-depth: 0 # the version comes from the repository tags
|
|
40
|
+
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7
|
|
41
|
+
with:
|
|
42
|
+
python-version: "3.14"
|
|
43
|
+
- name: Install wheel tooling
|
|
44
|
+
run: python -m pip install --upgrade cibuildwheel
|
|
45
|
+
- name: Build and smoke-test wheels
|
|
46
|
+
env:
|
|
47
|
+
CIBW_BUILD: >-
|
|
48
|
+
${{ github.event_name == 'pull_request' && 'cp314-manylinux_x86_64' || 'cp314-* cp315-*' }}
|
|
49
|
+
# The components require obdeect-stream of the same version, which is not on
|
|
50
|
+
# PyPI yet: install it from the same checkout before the tests.
|
|
51
|
+
CIBW_BEFORE_TEST: >-
|
|
52
|
+
${{ matrix.component != 'stream' && 'pip install {project}/src/stream' || '' }}
|
|
53
|
+
CIBW_TEST_COMMAND: python -m pytest {package}/python/tests -q
|
|
54
|
+
# Shared settings: [tool.cibuildwheel] in the root pyproject.toml.
|
|
55
|
+
run: >-
|
|
56
|
+
python -m cibuildwheel src/${{ matrix.component }} --config-file pyproject.toml
|
|
57
|
+
--output-dir wheelhouse
|
|
58
|
+
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
|
|
59
|
+
with:
|
|
60
|
+
name: wheels-${{ matrix.component }}-${{ matrix.os }}
|
|
61
|
+
path: wheelhouse/*.whl
|
|
62
|
+
|
|
63
|
+
sdist:
|
|
64
|
+
runs-on: ubuntu-slim
|
|
65
|
+
steps:
|
|
66
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
67
|
+
with:
|
|
68
|
+
ref: ${{ github.ref }}
|
|
69
|
+
fetch-depth: 0
|
|
70
|
+
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7
|
|
71
|
+
with:
|
|
72
|
+
python-version: "3.14"
|
|
73
|
+
- name: Build the component source distributions and the obdeect package
|
|
74
|
+
run: |
|
|
75
|
+
python -m pip install --upgrade build
|
|
76
|
+
python -m build --sdist --outdir dist src/stream
|
|
77
|
+
# Bundle the stream sources so each component sdist builds in an isolated
|
|
78
|
+
# environment, with exactly the stream version it is released with.
|
|
79
|
+
for component in propagation sources ray_tracing; do
|
|
80
|
+
mkdir "src/${component}/stream-src"
|
|
81
|
+
cp -R src/stream/CMakeLists.txt src/stream/cmake src/stream/cpp "src/${component}/stream-src/"
|
|
82
|
+
python -m build --sdist --outdir dist "src/${component}"
|
|
83
|
+
rm -rf "src/${component}/stream-src"
|
|
84
|
+
done
|
|
85
|
+
python -m build --outdir dist .
|
|
86
|
+
- name: Test the component sdists in a clean isolated build
|
|
87
|
+
run: |
|
|
88
|
+
python -m venv "${RUNNER_TEMP}/sdist-test"
|
|
89
|
+
for sdist in dist/obdeect_propagation-*.tar.gz dist/obdeect_sources-*.tar.gz \
|
|
90
|
+
dist/obdeect_ray_tracing-*.tar.gz; do
|
|
91
|
+
# No obdeect-stream installed: the build must use the bundled sources.
|
|
92
|
+
"${RUNNER_TEMP}/sdist-test/bin/pip" install --no-deps "${sdist}"
|
|
93
|
+
done
|
|
94
|
+
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
|
|
95
|
+
with:
|
|
96
|
+
name: sdist
|
|
97
|
+
path: dist/*
|
|
98
|
+
|
|
99
|
+
# One job and GitHub environment per PyPI project: a PyPI trusted publisher is
|
|
100
|
+
# registered per project, with the environment pypi-<project>.
|
|
101
|
+
publish:
|
|
102
|
+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
|
|
103
|
+
needs: [wheels, sdist]
|
|
104
|
+
strategy:
|
|
105
|
+
# A misconfigured publisher must not cancel the uploads of the other projects.
|
|
106
|
+
fail-fast: false
|
|
107
|
+
matrix:
|
|
108
|
+
project: [obdeect-stream, obdeect-propagation, obdeect-sources, obdeect-ray-tracing]
|
|
109
|
+
runs-on: ubuntu-24.04
|
|
110
|
+
environment: pypi-${{ matrix.project }}
|
|
111
|
+
permissions:
|
|
112
|
+
id-token: write
|
|
113
|
+
steps:
|
|
114
|
+
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8
|
|
115
|
+
with:
|
|
116
|
+
path: all
|
|
117
|
+
merge-multiple: true
|
|
118
|
+
- name: Select the distributions of ${{ matrix.project }}
|
|
119
|
+
env:
|
|
120
|
+
PROJECT: ${{ matrix.project }}
|
|
121
|
+
run: |
|
|
122
|
+
mkdir dist
|
|
123
|
+
mv all/"${PROJECT//-/_}"-[0-9]* dist/
|
|
124
|
+
ls dist
|
|
125
|
+
- name: Publish distributions to PyPI
|
|
126
|
+
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # release/v1
|
|
127
|
+
|
|
128
|
+
# The obdeect package requires all components: publish it after them.
|
|
129
|
+
publish-obdeect:
|
|
130
|
+
needs: publish
|
|
131
|
+
runs-on: ubuntu-24.04
|
|
132
|
+
environment: pypi-obdeect
|
|
133
|
+
permissions:
|
|
134
|
+
id-token: write
|
|
135
|
+
steps:
|
|
136
|
+
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8
|
|
137
|
+
with:
|
|
138
|
+
path: all
|
|
139
|
+
merge-multiple: true
|
|
140
|
+
- name: Select the distributions of obdeect
|
|
141
|
+
run: |
|
|
142
|
+
mkdir dist
|
|
143
|
+
mv all/obdeect-[0-9]* dist/
|
|
144
|
+
ls dist
|
|
145
|
+
- name: Publish distributions to PyPI
|
|
146
|
+
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # release/v1
|
|
@@ -0,0 +1,153 @@
|
|
|
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
|
+
# C++ tests of all components, once per platform (they do not depend on Python).
|
|
19
|
+
native:
|
|
20
|
+
strategy:
|
|
21
|
+
fail-fast: false
|
|
22
|
+
matrix:
|
|
23
|
+
runner: [ubuntu-24.04, ubuntu-24.04-arm, macos-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
|
+
- name: Configure and build all components
|
|
30
|
+
run: >-
|
|
31
|
+
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
|
|
32
|
+
&& cmake --build build --parallel
|
|
33
|
+
- name: Run native tests
|
|
34
|
+
run: ctest --test-dir build --output-on-failure --parallel 4
|
|
35
|
+
|
|
36
|
+
# Python packages, native programs and the end-to-end chain. Python 3.15 (prerelease)
|
|
37
|
+
# on one platform only.
|
|
38
|
+
python:
|
|
39
|
+
strategy:
|
|
40
|
+
fail-fast: false
|
|
41
|
+
matrix:
|
|
42
|
+
include:
|
|
43
|
+
- {runner: ubuntu-24.04, python-version: '3.14'}
|
|
44
|
+
- {runner: ubuntu-24.04-arm, python-version: '3.14'}
|
|
45
|
+
- {runner: macos-15, python-version: '3.14'}
|
|
46
|
+
- {runner: ubuntu-24.04, python-version: '3.15'}
|
|
47
|
+
runs-on: ${{ matrix.runner }}
|
|
48
|
+
steps:
|
|
49
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
50
|
+
with:
|
|
51
|
+
fetch-depth: 0 # component versions come from the repository tags
|
|
52
|
+
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7
|
|
53
|
+
with:
|
|
54
|
+
python-version: ${{ matrix.python-version }}
|
|
55
|
+
allow-prereleases: true
|
|
56
|
+
# Build tools once instead of once per component (build isolation).
|
|
57
|
+
- name: Install all components and test dependencies
|
|
58
|
+
run: >-
|
|
59
|
+
python -m pip install --upgrade pip
|
|
60
|
+
&& python -m pip install "scikit-build-core>=0.11" "setuptools-scm>=8" "nanobind>=3.1"
|
|
61
|
+
&& python -m pip install --no-build-isolation ./src/stream ./src/propagation
|
|
62
|
+
./src/sources "./src/ray_tracing[plot]" pytest
|
|
63
|
+
# One run per component (test modules of different components share file names),
|
|
64
|
+
- name: Run Python tests
|
|
65
|
+
run: |
|
|
66
|
+
status=0
|
|
67
|
+
for component in stream propagation sources ray_tracing; do
|
|
68
|
+
pytest "src/${component}/python/tests" || status=1
|
|
69
|
+
done
|
|
70
|
+
exit "${status}"
|
|
71
|
+
|
|
72
|
+
# Repository-level release files (CITATION.cff, CHANGELOG.md); no build needed.
|
|
73
|
+
release-metadata:
|
|
74
|
+
runs-on: ubuntu-slim
|
|
75
|
+
steps:
|
|
76
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
77
|
+
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7
|
|
78
|
+
with:
|
|
79
|
+
python-version: '3.14'
|
|
80
|
+
- name: Check CITATION.cff against CHANGELOG.md
|
|
81
|
+
run: |
|
|
82
|
+
python -m pip install --upgrade pip pytest
|
|
83
|
+
pytest docs/test_release_metadata.py -q
|
|
84
|
+
|
|
85
|
+
# Each component on its own, in parallel.
|
|
86
|
+
sanitizers:
|
|
87
|
+
strategy:
|
|
88
|
+
fail-fast: false
|
|
89
|
+
matrix:
|
|
90
|
+
component: [stream, propagation, sources, ray_tracing]
|
|
91
|
+
runs-on: ubuntu-24.04
|
|
92
|
+
steps:
|
|
93
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
94
|
+
with:
|
|
95
|
+
fetch-depth: 0 # component versions come from the repository tags
|
|
96
|
+
- name: Install a decimal-comma locale
|
|
97
|
+
run: sudo locale-gen de_DE.UTF-8
|
|
98
|
+
- name: Configure, build, and test with sanitizers
|
|
99
|
+
env:
|
|
100
|
+
OBDEECT_RAY_TRACING_REQUIRE_COMMA_LOCALE: "1"
|
|
101
|
+
run: >-
|
|
102
|
+
cmake -S src/${{ matrix.component }} -B build-sanitize -DCMAKE_BUILD_TYPE=Debug
|
|
103
|
+
-DCMAKE_CXX_FLAGS="-fsanitize=address,undefined -fno-omit-frame-pointer"
|
|
104
|
+
-DCMAKE_C_FLAGS="-fsanitize=address,undefined -fno-omit-frame-pointer"
|
|
105
|
+
-DCMAKE_EXE_LINKER_FLAGS="-fsanitize=address,undefined"
|
|
106
|
+
-DCMAKE_SHARED_LINKER_FLAGS="-fsanitize=address,undefined"
|
|
107
|
+
&& cmake --build build-sanitize --parallel
|
|
108
|
+
&& ctest --test-dir build-sanitize --output-on-failure --parallel 4
|
|
109
|
+
|
|
110
|
+
# Ray tracing only: the only component with an FMA option and with threads.
|
|
111
|
+
fma:
|
|
112
|
+
runs-on: ubuntu-24.04
|
|
113
|
+
steps:
|
|
114
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
115
|
+
with:
|
|
116
|
+
fetch-depth: 0 # component versions come from the repository tags
|
|
117
|
+
- name: Configure, build, and test ray tracing with OBDEECT_RAY_TRACING_USE_FMA
|
|
118
|
+
run: >-
|
|
119
|
+
cmake -S src/ray_tracing -B build-fma -DCMAKE_BUILD_TYPE=Release
|
|
120
|
+
-DOBDEECT_RAY_TRACING_USE_FMA=ON
|
|
121
|
+
&& cmake --build build-fma --parallel
|
|
122
|
+
&& ctest --test-dir build-fma --output-on-failure
|
|
123
|
+
thread-sanitizer:
|
|
124
|
+
runs-on: ubuntu-24.04
|
|
125
|
+
steps:
|
|
126
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
127
|
+
with:
|
|
128
|
+
fetch-depth: 0 # component versions come from the repository tags
|
|
129
|
+
# GCC 13 reports a false free-nonheap-object warning in std::vector under TSan.
|
|
130
|
+
- name: Configure, build, and test ray tracing with ThreadSanitizer
|
|
131
|
+
run: >-
|
|
132
|
+
cmake -S src/ray_tracing -B build-tsan -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
133
|
+
-DCMAKE_CXX_FLAGS="-fsanitize=thread -fno-omit-frame-pointer -Wno-free-nonheap-object"
|
|
134
|
+
-DCMAKE_EXE_LINKER_FLAGS="-fsanitize=thread"
|
|
135
|
+
&& cmake --build build-tsan --parallel
|
|
136
|
+
&& ctest --test-dir build-tsan --output-on-failure
|
|
137
|
+
clang-tidy:
|
|
138
|
+
runs-on: ubuntu-24.04
|
|
139
|
+
steps:
|
|
140
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
141
|
+
with:
|
|
142
|
+
fetch-depth: 0
|
|
143
|
+
- name: Configure with the compilation database
|
|
144
|
+
run: >-
|
|
145
|
+
cmake -S . -B build-tidy -DCMAKE_BUILD_TYPE=Debug -DOBDEECT_STREAM_BUILD_BENCH=ON
|
|
146
|
+
-DOBDEECT_RAY_TRACING_BUILD_BENCH=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
|
|
147
|
+
# The compilation database comes from GCC; clang-tidy ignores GCC-only warning options.
|
|
148
|
+
- name: Run clang-tidy on all components' tests and benchmarks (headers via HeaderFilterRegex)
|
|
149
|
+
run: >-
|
|
150
|
+
find src/stream/cpp/tests src/stream/cpp/bench src/propagation/cpp/tests
|
|
151
|
+
src/sources/cpp/tests src/ray_tracing/cpp/tests src/ray_tracing/cpp/bench
|
|
152
|
+
-name '*.cpp' -print0
|
|
153
|
+
| xargs -0 -P 4 -n 4 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,7 @@ __pycache__/
|
|
|
29
29
|
.idea/
|
|
30
30
|
|
|
31
31
|
# Documentation build
|
|
32
|
-
|
|
32
|
+
docs/_build/
|
|
33
|
+
|
|
34
|
+
# Stream sources staged into component sdists at release time
|
|
35
|
+
/src/*/stream-src/
|
|
@@ -2,16 +2,19 @@
|
|
|
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
|
-
rev:
|
|
10
|
+
rev: v6.0.0
|
|
8
11
|
hooks:
|
|
9
12
|
- id: check-yaml
|
|
10
13
|
- id: check-json
|
|
11
14
|
- id: end-of-file-fixer
|
|
12
15
|
- id: trailing-whitespace
|
|
13
16
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
14
|
-
rev: v0.
|
|
17
|
+
rev: v0.17.5
|
|
15
18
|
hooks:
|
|
16
19
|
- id: ruff-check
|
|
17
20
|
args: [--fix]
|
|
@@ -23,20 +26,21 @@ repos:
|
|
|
23
26
|
- id: actionlint
|
|
24
27
|
# https://pyproject-fmt.readthedocs.io/en/latest/
|
|
25
28
|
- repo: https://github.com/tox-dev/pyproject-fmt
|
|
26
|
-
rev: "v2.
|
|
29
|
+
rev: "v2.30.6"
|
|
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,kInf,nd",
|
|
36
40
|
]
|
|
37
41
|
# markdownlint
|
|
38
42
|
- repo: https://github.com/igorshubovych/markdownlint-cli
|
|
39
|
-
rev: v0.
|
|
43
|
+
rev: v0.50.0
|
|
40
44
|
hooks:
|
|
41
45
|
- id: markdownlint
|
|
42
46
|
args: ["--disable", "MD041"]
|
|
@@ -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.9.2/AGENTS.md
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
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
|
+
In documentation, say "efficiency status", never "ledger"; say "photons in the sky frame", not
|
|
38
|
+
"sky photons"; call the `--envelope` tables "efficiency bounds". Photon-stream files use `.pst`,
|
|
39
|
+
never `.ps` (PostScript).
|
|
40
|
+
- Keep it simple, efficient, deterministic and portable. Prefer small, explicit data
|
|
41
|
+
structures and testable kernels over frameworks, global state, hidden defaults or
|
|
42
|
+
abstraction in the hot path.
|
|
43
|
+
- Keep the core C++20 standard-library-only. Python, plotting, file formats of other
|
|
44
|
+
programs and simulator dependencies belong at the boundary, never in a kernel.
|
|
45
|
+
- Per-photon kernels are pure functions of (chunk, parameters): no allocation, I/O,
|
|
46
|
+
Python calls or virtual dispatch per photon. Use float32 SoA photon columns (or
|
|
47
|
+
immutable compiled models and contiguous buffers where stated by the component).
|
|
48
|
+
Write kernels as templates on the scalar type. The scalar version is the reference
|
|
49
|
+
for any SIMD or GPU version.
|
|
50
|
+
- Random numbers: counter-based (Philox), keyed on (seed, stage id, event, telescope, photon index).
|
|
51
|
+
- Make units, frames, random seeds, statuses, efficiencies and loss accounting explicit.
|
|
52
|
+
Reject invalid or unsupported input; never silently discard fields.
|
|
53
|
+
- Do not hardwire CTAO names, telescope geometry, model versions, file paths or physics
|
|
54
|
+
parameters into the core, the public API or defaults. Configuration comes from
|
|
55
|
+
validated input data (simtools writes it). CTAO support is an explicit importer or
|
|
56
|
+
versioned fixture only, never required and never an implicit fallback.
|
|
57
|
+
- Plotting is optional (`.[plot]`); matplotlib is never a core dependency.
|
|
58
|
+
- Use Python >=3.14 (as in the root `pyproject.toml`). Do not fall back to earlier versions.
|
|
59
|
+
- The stream format is versioned; readers reject unknown major versions.
|
|
60
|
+
- The EventIO reader and writer are this project's own code. Use sim_telarray only as a test reference.
|
|
61
|
+
|
|
62
|
+
## Component rules
|
|
63
|
+
|
|
64
|
+
- `stream`: Results must not depend on photon ordering, chunk size or thread count.
|
|
65
|
+
Record each efficiency in the stream.
|
|
66
|
+
- `propagation`: Atmospheric effects are an ordered list of independent effects, each
|
|
67
|
+
recorded in the efficiency status of the stream. Extinction follows `docs/extinction.md`;
|
|
68
|
+
its tests hold the reference values.
|
|
69
|
+
- `sources`: Sources are defined by validated input (position, direction, angular,
|
|
70
|
+
spectral and pulse profiles), never by hardwired device names. Sources emit at sky,
|
|
71
|
+
telescope-sphere (G), telescope (T) or camera (C) level.
|
|
72
|
+
- `ray_tracing`: Use immutable compiled optical models and contiguous SoA buffers. After
|
|
73
|
+
output buffers are sized, the per-photon path must not allocate, do I/O, call Python or
|
|
74
|
+
dispatch virtually. Terminology: "optical model", not telescope-specific names.
|
|
75
|
+
When renaming a public concept, update implementation symbols, imports, exception
|
|
76
|
+
types, serialized keys, fixture variables and test call sites together.
|
|
77
|
+
Use `docs/VALIDATION.md` and `docs/optical-models.md` for architectural or scientific changes.
|
|
78
|
+
|
|
79
|
+
## Changes and validation
|
|
80
|
+
|
|
81
|
+
- Make the narrowest complete change and preserve unrelated work.
|
|
82
|
+
- Add a Towncrier fragment under root `docs/changes/` for changes that belong in the release notes.
|
|
83
|
+
- Add or update a focused test for every behavioural change. Analytic kernel and primitive
|
|
84
|
+
tests come before optical-model, cross-tool or performance tests.
|
|
85
|
+
- Results must not depend on photon ordering, block or chunk size, or thread count.
|
|
86
|
+
- Do not weaken tolerances or replace reference data to hide a discrepancy. Record
|
|
87
|
+
provenance for fixtures and cross-tool comparisons. Keep examples and fixtures labelled
|
|
88
|
+
and configuration-driven.
|
|
89
|
+
|
|
90
|
+
## Build, test and lint
|
|
91
|
+
|
|
92
|
+
Run from the repository root. One combined build covers all components:
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
python -m pip install -e '.[dev]' # editable install; rebuilds on C++ changes
|
|
96
|
+
cmake -S . -B build
|
|
97
|
+
cmake --build build
|
|
98
|
+
ctest --test-dir build --output-on-failure
|
|
99
|
+
python -m pytest src/<component>/python/tests # e.g. src/ray_tracing
|
|
100
|
+
ruff format --check src
|
|
101
|
+
ruff check src
|
|
102
|
+
find src -type f \( -name '*.cpp' -o -name '*.hpp' \) -print0 | \
|
|
103
|
+
xargs -0 clang-format --dry-run --Werror
|
|
104
|
+
pre-commit run --all-files
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
Ruff uses a 100-character line limit (root `pyproject.toml`). Run `ruff format` before
|
|
108
|
+
`ruff check`. A clean handoff needs both `ruff format --check src` and `ruff check src`.
|
|
109
|
+
After renames, grep the Python files for removed symbols and run the focused tests first.
|
|
110
|
+
|
|
111
|
+
Run `clang-tidy -p build <changed-file>` for changed C++ files when available.
|
|
112
|
+
`pre-commit run --all-files` runs ruff, codespell, markdownlint, yamllint, actionlint,
|
|
113
|
+
pyproject-fmt, shellcheck and the towncrier check. Run the full checks for shared kernels,
|
|
114
|
+
interfaces, configuration or tooling changes.
|
|
115
|
+
|
|
116
|
+
CI also builds a `-DOBDEECT_USE_FMA=ON` Release and an AddressSanitizer/UBSan Debug build.
|
|
117
|
+
Run them locally for floating-point kernel or memory-handling changes:
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
cmake -S . -B build-sanitize -DCMAKE_BUILD_TYPE=Debug \
|
|
121
|
+
-DCMAKE_CXX_FLAGS="-fsanitize=address,undefined -fno-omit-frame-pointer" \
|
|
122
|
+
-DCMAKE_EXE_LINKER_FLAGS="-fsanitize=address,undefined"
|
|
123
|
+
cmake --build build-sanitize --parallel
|
|
124
|
+
ctest --test-dir build-sanitize --output-on-failure
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Docs build with warnings as errors, per component:
|
|
128
|
+
`sphinx-build -W --keep-going -b html src/<component>/docs src/<component>/docs/_build/html`.
|
|
129
|
+
Regenerate ray-tracing figures only from new validation results, via `src/ray_tracing/docs/figures/make_figures.py`.
|