Skip to content

Increase number of photons for testing#2045

Merged
GernotMaier merged 3 commits intomainfrom
flasher-sims-mst
Feb 13, 2026
Merged

Increase number of photons for testing#2045
GernotMaier merged 3 commits intomainfrom
flasher-sims-mst

Conversation

@GernotMaier
Copy link
Copy Markdown
Contributor

Increase number of flasher photons for tests cases from 1.e5 to 1.e6 to ensure light / triggers in MSTs.

@GernotMaier GernotMaier self-assigned this Feb 13, 2026
@GernotMaier GernotMaier linked an issue Feb 13, 2026 that may be closed by this pull request
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 increases the default number of flasher photons used when test=True in the light-emission simulator to make MST-related tests more reliable (ensuring sufficient light / triggers).

Changes:

  • Increase test-mode flasher_photons default from 1e5 to 1e6 in the simulator.
  • Update the corresponding unit test expectation.
  • Add a changelog entry documenting the adjustment.

Reviewed changes

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

File Description
tests/unit_tests/simtel/test_simulator_light_emission.py Updates the test-mode assertion to expect 1e6 photons.
src/simtools/simtel/simulator_light_emission.py Raises the test-mode fallback for flasher_photons to 1e6.
docs/changes/2045.bugfix.md Documents the photon-count increase for test cases.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@ctao-sonarqube
Copy link
Copy Markdown

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarQube

Base automatically changed from flasher-sims to main February 13, 2026 13:01
@GernotMaier GernotMaier merged commit 4abda59 into main Feb 13, 2026
12 checks passed
@GernotMaier GernotMaier deleted the flasher-sims-mst branch February 13, 2026 13:02
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.

No light in full flasher simulations

3 participants