Repository navigation
Integrate obdeect camera - #2842
Open
GernotMaier wants to merge 20 commits into
Open
GernotMaier wants to merge 20 commits into
GernotMaier wants to merge 20 commits into
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This was
linked to
issues
Dec 4, 2026
GernotMaier
marked this pull request as ready for review
December 4, 2026 18:45
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Approval is blocked by an incorrect case-sensitive configuration key that makes the opt-in checker report a valid default as missing, along with an unresolved dependency-version mismatch in the package metadata.
2 open issues
What changed in this PR
Introduces pluggable camera-model exporters and obdeect camera simulation support, including EventIO output, transmission handling, streaming, metadata, documentation, and tests.
Changes:
- Added obdeect and sim_telarray camera backends and execution stages.
- Updated simulation chains, seeds, geometry, schemas, dependencies, and production metadata.
- Added unit and integration coverage plus API and user documentation.
| File | Description |
|---|---|
| tests/unit_tests/utils/test_run_seeds.py | Tests simulator-neutral run seed handling. |
| tests/unit_tests/utils/test_geometry.py | Tests geometry utility updates. |
| tests/unit_tests/simulation_software/test_optics.py | Tests optics configuration changes. |
| tests/unit_tests/simulation_software/test_light_sources.py | Tests light-source simulation software updates. |
| tests/unit_tests/simulation_software/test_flasher_stream.py | Tests flasher stream configuration. |
| tests/unit_tests/simulation_software/obdeect/test_streams.py | Tests obdeect stream commands and configuration. |
| tests/unit_tests/simulation_software/obdeect/test_sources.py | Tests obdeect source commands. |
| tests/unit_tests/simulation_software/obdeect/test_simtel.py | Tests obdeect sim_telarray integration. |
| tests/unit_tests/simtel/test_simulator_light_emission.py | Tests light-emission simulator changes. |
| tests/unit_tests/simtel/test_simulator_array.py | Tests simulator array updates. |
| tests/unit_tests/runners/test_stream_fanout.py | Tests stream fan-out behavior. |
| tests/unit_tests/runners/test_simulator.py | Tests simulator runner orchestration. |
| tests/unit_tests/runners/test_sim_telarray_stage.py | Tests sim_telarray stage integration. |
| tests/unit_tests/runners/test_optics_stage.py | Tests optics stage behavior. |
| tests/unit_tests/runners/test_light_source_stages.py | Tests light-source stages. |
| tests/unit_tests/runners/test_light_emission_runner.py | Tests light-emission runner behavior. |
| tests/unit_tests/runners/test_corsika_stage.py | Tests Corsika stage updates. |
| tests/unit_tests/runners/test_adapter_stages.py | Tests adapter stage integration. |
| tests/unit_tests/ray_tracing/backends/test_obdeect.py | Tests the obdeect ray-tracing backend. |
| tests/unit_tests/production_configuration/test_production_metadata.py | Tests production metadata and provenance. |
| tests/unit_tests/production_configuration/test_production_file_selection.py | Tests production file classification. |
| tests/unit_tests/model/test_flasher_geometry.py | Tests shared flasher geometry calculations. |
| tests/unit_tests/model/test_array_model.py | Tests array model updates. |
| tests/unit_tests/camera/backends/test_sim_telarray.py | Tests sim_telarray camera model export. |
| tests/unit_tests/camera/backends/test_interface.py | Tests the camera backend interface and selection. |
| tests/unit_tests/camera/backends/obdeect/test_reference_defaults.py | Tests obdeect reference defaults. |
| tests/unit_tests/camera/backends/obdeect/test_reference_defaults_check.py | Tests reference-default validation. |
| tests/unit_tests/camera/backends/obdeect/test_model_spe.py | Tests obdeect SPE model export. |
| tests/unit_tests/camera/backends/obdeect/test_model_optics.py | Tests obdeect optics model export. |
| tests/unit_tests/camera/backends/obdeect/test_model_geometry.py | Tests obdeect geometry model export. |
| tests/unit_tests/camera/backends/obdeect/test_backend.py | Tests the obdeect camera backend. |
| tests/unit_tests/builders/test_files.py | Tests file builder behavior. |
| tests/unit_tests/builders/files.py | Provides file-builder test helpers. |
| tests/unit_tests/atmosphere/test_atmosphere.py | Tests atmospheric calculations. |
| tests/unit_tests/applications/test_simulate_flasher.py | Tests flasher simulation workflows. |
| tests/integration_tests/test_applications_from_config.py | Tests configured application workflows. |
| tests/integration_tests/simulation_matrix.yml | Defines the integration simulation matrix. |
| tests/integration_tests/config/simulate_prod_proton_20_deg_north_check_output.yml | Configures proton production output checks. |
| tests/integration_tests/config/simulate_prod_gamma_40_deg_south_sim_telarray_only.yml | Configures a sim_telarray-only gamma workflow. |
| tests/integration_tests/config/simulate_prod_gamma_20_deg_south_multiple_model_versions.yml | Configures gamma production with multiple model versions. |
| tests/integration_tests/config/simulate_flasher_obdeect_only_mst_flashcam.yml | Configures an obdeect-only flashcam workflow. |
| tests/integration_tests/config/simulate_flasher_full_simulation_sst.yml | Configures a full SST flasher simulation. |
| tests/integration_tests/config/simulate_flasher_full_simulation_mst_nectarcam.yml | Configures a full MST NectarCAM simulation. |
| tests/integration_tests/config/simulate_flasher_full_simulation_mst_flashcam.yml | Configures a full MST FlashCam simulation. |
| tests/integration_tests/config/simulate_flasher_full_simulation_lst_south.yml | Configures a full southern LST simulation. |
| tests/integration_tests/config/simulate_flasher_full_simulation_lst_filter_wheel.yml | Configures an LST filter-wheel simulation. |
| tests/integration_tests/config/simulate_flasher_full_simulation_lst_filter_wheel_single_event_value.yml | Configures a single-event LST filter-wheel simulation. |
| src/simtools/utils/run_seeds.py | Adds simulator-neutral run seed handling. |
| src/simtools/utils/geometry.py | Updates shared geometry utilities. |
| src/simtools/simulation_software/optics.py | Updates optics simulation configuration. |
| src/simtools/simulation_software/obdeect/streams.py | Adds obdeect stream configuration and commands. |
| src/simtools/simulation_software/obdeect/sources.py | Adds obdeect source configuration and commands. |
| src/simtools/simulation_software/obdeect/simtel.py | Integrates obdeect with sim_telarray. |
| src/simtools/simulation_software/light_sources.py | Updates light-source simulation configuration. |
| src/simtools/simulation_software/flasher_stream.py | Updates flasher stream handling. |
| src/simtools/simtel/simulator_ray_tracing.py | Updates sim_telarray ray-tracing simulation. |
| src/simtools/simtel/simulator_light_emission.py | Updates light-emission simulation and validation. |
| src/simtools/simtel/simulator_array.py | Updates array simulation behavior. |
| src/simtools/simtel/simtel_runner.py | Updates the sim_telarray runner. |
| src/simtools/simtel/simtel_config_writer.py | Updates sim_telarray configuration writing. |
| src/simtools/sim_events/file_info.py | Adds EventIO camera output validation. |
| src/simtools/schemas/simulation_software.schema.yml | Extends the simulation software schema. |
| src/simtools/schemas/simulate_prod_job_metadata.schema.yml | Updates production job metadata schema. |
| src/simtools/schemas/application_workflow.metaschema.yml | Updates application workflow metadata validation. |
| src/simtools/runtime/software_catalog.py | Adds backend and output lookup support. |
| src/simtools/runners/stream_fanout.py | Adds bounded stream fan-out support. |
| src/simtools/runners/simulator.py | Updates simulator runner orchestration. |
| src/simtools/runners/sim_telarray_stage.py | Updates sim_telarray stage and transmission handling. |
| src/simtools/runners/optics_stage.py | Updates optics stage execution. |
| src/simtools/runners/light_emission_runner.py | Updates light-emission runner integration. |
| src/simtools/runners/corsika_stage.py | Adds direct obdeect streaming support. |
| src/simtools/runners/atmosphere_stage.py | Updates atmosphere stage integration. |
| src/simtools/runners/adapter_stages.py | Updates adapter stage orchestration. |
| src/simtools/resources/simulation_software.yml | Registers simulation software stages and outputs. |
| src/simtools/resources/obdeect_camera_required_parameters.yml | Defines required obdeect camera parameters. |
| src/simtools/resources/file_types.yml | Registers new file types. |
| src/simtools/ray_tracing/backends/sim_telarray.py | Updates sim_telarray ray-tracing behavior. |
| src/simtools/ray_tracing/backends/obdeect.py | Adds obdeect ray-tracing integration. |
| src/simtools/production_configuration/production_metadata.py | Adds EventIO provenance metadata. |
| src/simtools/production_configuration/production_file_selection.py | Adds EventIO production file selection. |
| src/simtools/model/flasher_geometry.py | Centralizes flasher geometry calculations. |
| src/simtools/model/array_model.py | Updates array model behavior. |
| src/simtools/job_execution/runner_services.py | Adds shared runner services. |
| src/simtools/camera/backends/sim_telarray.py | Adds sim_telarray camera model export. |
| src/simtools/camera/backends/obdeect/reference_defaults.py | Defines obdeect reference defaults. |
| src/simtools/camera/backends/obdeect/reference_defaults_check.py | Validates sim_telarray reference defaults. |
| src/simtools/camera/backends/obdeect/model_spe.py | Exports obdeect SPE parameters. |
| src/simtools/camera/backends/obdeect/model_optics.py | Exports obdeect optics parameters. |
| src/simtools/camera/backends/obdeect/model_geometry.py | Exports obdeect geometry parameters. |
| src/simtools/camera/backends/obdeect/backend.py | Implements the obdeect camera backend. |
| src/simtools/camera/backends/obdeect/array_trigger.py | Handles obdeect array-trigger configuration. |
| src/simtools/camera/backends/interface.py | Defines the camera backend contract and request types. |
| src/simtools/atmosphere/atmosphere.py | Updates atmospheric light-speed calculations. |
| src/simtools/applications/simulate_flasher.py | Adds chain-aware flasher simulation validation. |
| pyproject.toml | Raises the minimum obdeect dependency version. |
| docs/source/user-guide/productions/run-productions.md | Documents production execution and outputs. |
| docs/source/user-guide/applications/simtools-simulate-prod.md | Updates simulated production usage documentation. |
| docs/source/developer-guide/testing_unit.md | Updates unit-testing guidance. |
| docs/source/api-reference/simulators.md | Documents simulator APIs. |
| docs/source/api-reference/sim_telarray.md | Documents sim_telarray APIs and behavior. |
| docs/source/api-reference/runners.md | Documents runner APIs and stages. |
| docs/source/api-reference/mc_model.md | Updates Monte Carlo model documentation. |
| docs/source/api-reference/camera.md | Documents camera backends and obdeect schema mapping. |
| docs/changes/2842.feature.md | Documents the primary feature release note. |
| docs/changes/2842.feature.1.md | Documents the camera-stage feature release note. |
| docs/changes/2842.bugfix.md | Documents the flasher behavior bugfix. |
| docs/changes/2842.api.md | Documents API changes. |
| dependency_versions.yml | Pins the obdeect test dependency version. |
Review effort: Lite
| "mirror_degraded_reflection": "MIRROR_DEGRADED_REFLECTION", | ||
| "nsb_scaling_factor": "NSB_SCALING_FACTOR", | ||
| "pm_average_gain": "PM_AVERAGE_GAIN", | ||
| "pm_collection_efficiency": "PM_COLLECTION_EFFiciency", |
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.






This pull request introduces a new, extensible backend system for exporting camera models, along with comprehensive documentation and a dependency update. The main focus is on supporting multiple simulation software formats for camera models, including a new backend for exporting to the obdeect camera configuration JSON, and handling of camera transmission efficiency. The documentation provides detailed mapping between sim_telarray parameters and the obdeect schema, and describes the backend interface and usage.
Camera-model backend system and obdeect export:
simtools.camera.backends.interface, defining a request type (CameraModelRequest), a backend contract (CameraModelBackendprotocol), and a backend selection mechanism via the simulation software catalog. This enables pluggable export backends for camera models.obdeect.camera.modelversion 0.1.0.Documentation improvements:
camera.mdwith a detailed mapping of sim_telarray parameters to the obdeect schema, backend selection, and backend module documentation. This includes extensive explanations of parameter handling, unsupported settings, and provenance tracking.Dependency update:
obdeectpackage version to>=0.12inpyproject.tomlto ensure compatibility with the new backend features.Camera transmission handling:
camera_transmissionso that values other than 1 are now accepted and properly applied in ray tracing and export, rather than being rejected. The export writes this value asdetection.camera_transmissionin the camera model.