Improve file management for light emission simulations.#1981
Merged
GernotMaier merged 14 commits intomainfrom Jan 16, 2026
Merged
Improve file management for light emission simulations.#1981GernotMaier merged 14 commits intomainfrom
GernotMaier merged 14 commits intomainfrom
Conversation
…tion-light-emission-package
…tion-light-emission-package
Contributor
There was a problem hiding this comment.
Pull request overview
This PR improves file management for light emission simulations by consistently using runner_services for directory and file naming, aligning with conventions used in other simulation production tools.
Changes:
- Refactored
SimulatorLightEmissionto userunner_servicesfor consistent file and directory management - Generalized
RunnerServicesto support bothCorsikaConfigand dict configurations - Removed
output_prefixparameter and updated file naming to match other simulation tools - Moved submission scripts and logs to
<output dir>/subsubdirectory
Reviewed changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/simtools/simtel/simulator_light_emission.py | Major refactoring to use runner_services, removed prefix logic, renamed methods |
| src/simtools/runners/runner_services.py | Added support for dict configs and iact_output file type |
| src/simtools/runners/simtel_runner.py | Renamed corsika_config parameter to config |
| src/simtools/runners/corsika_runner.py | Refactored to use runner_service.get_file_name() |
| src/simtools/runners/corsika_simtel_runner.py | Updated RunnerServices initialization with named parameters |
| src/simtools/simtel/simulator_array.py | Updated parent class initialization with named parameters |
| src/simtools/applications/simulate_flasher.py | Removed output_prefix parameter, added verify_simulations call |
| src/simtools/applications/simulate_illuminator.py | Removed output_prefix parameter, added run_mode to config |
| tests/unit_tests/test_simulator.py | Added zenith_angle to mock configuration |
| tests/unit_tests/simtel/test_simulator_light_emission.py | Updated tests for renamed methods and refactored implementation |
| tests/unit_tests/runners/test_simtel_runner.py | Updated test to use config parameter name |
| tests/unit_tests/runners/test_runner_services.py | Updated tests with named parameters, added new test case |
| tests/integration_tests/config/*.yml | Updated expected file paths to match new directory structure |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
tobiaskleiner
approved these changes
Jan 16, 2026
Collaborator
tobiaskleiner
left a comment
There was a problem hiding this comment.
Thanks @GernotMaier, one minor comment, otherwise all good.
Contributor
Author
|
Thanks for the review @tobiaskleiner I merge main, will wait for the tests, and merge to main if successful. |
|
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.




Improve file management for light emission simulations:
runner_servicesto have a consistent directory management.runner_servicesfor improved output and log file naming consistent with rest of simtools.e.g. the file tree for flasher simulations looks now like:
while before it looked like: