Skip to content

Remove run_mode setup in simulate_illuminator to avoid user confusion.#2158

Merged
GernotMaier merged 5 commits into
mainfrom
illuminator-run-mode
May 4, 2026
Merged

Remove run_mode setup in simulate_illuminator to avoid user confusion.#2158
GernotMaier merged 5 commits into
mainfrom
illuminator-run-mode

Conversation

@GernotMaier
Copy link
Copy Markdown
Contributor

Remove run_mode setup in simulate_illuminator to avoid user confusion. Set run_mode depending on flasher_type.

Closes #2087.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the user-facing run_mode setup from simtools-simulate-illuminator and shifts the illuminator/flasher mode inference into SimulatorLightEmission, so the CLI behavior follows the calibration model instead of a hardcoded app override.

Changes:

  • Stop injecting run_mode="illuminator" in the illuminator application entry point.
  • Infer run_mode from the calibration model’s flasher_type when the caller did not provide one.
  • Update unit tests around _initialize_light_emission_configuration and add a changelog fragment.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/simtools/applications/simulate_illuminator.py Removes the hardcoded run_mode from the illuminator CLI flow.
src/simtools/simtel/simulator_light_emission.py Infers run_mode from flasher_type during light-emission config initialization.
tests/unit_tests/simtel/test_simulator_light_emission.py Extends unit coverage for inferred/preserved run_mode behavior.
docs/changes/2158.maintenance.md Adds the changelog entry for the maintenance change.

Comment thread tests/unit_tests/simtel/test_simulator_light_emission.py Outdated
@GernotMaier GernotMaier marked this pull request as ready for review May 4, 2026 08:57
@ctao-sonarqube
Copy link
Copy Markdown

ctao-sonarqube Bot commented May 4, 2026

@GernotMaier GernotMaier requested a review from orelgueta May 4, 2026 10:06
@GernotMaier GernotMaier merged commit 70189c9 into main May 4, 2026
16 checks passed
@GernotMaier GernotMaier deleted the illuminator-run-mode branch May 4, 2026 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

run_mode in illuminator application a bit misleading

3 participants