Skip to content

Test sources v2#2214

Merged
GernotMaier merged 4 commits into
tests-resourcesfrom
test-sources-v2
May 28, 2026
Merged

Test sources v2#2214
GernotMaier merged 4 commits into
tests-resourcesfrom
test-sources-v2

Conversation

@GernotMaier
Copy link
Copy Markdown
Contributor

Adds new configuration files for generating model parameter resources and updates a test to use the correct file path for a mirror list resource. These changes help ensure that tests and resource generation are aligned with the latest file locations and formats.

GernotMaier and others added 3 commits May 28, 2026 11:53
Add workflow configs to fetch the following test resource files from the
simulation model database instead of storing them in the repository:

- pm_photoelectron_spectrum.config.yml: spe_LST_2022-04-27_AP2.0e-4.dat
  (pm_photoelectron_spectrum v2.0.0, LSTN-design)
- mirror_list.config.yml: mirror_list-2.0.0.json
  (mirror_list v2.0.0, LSTN-01, JSON metadata)
- mirror_list_simtel_dat.config.yml: mirror_list_CTA-N-LST1_v2019-03-31_rotated_simtel.dat
  (mirror_list v2.0.0, LSTN-01, physical file)
- array_element_position_ground.config.yml: array_element_position_ground-2.0.0.json
  (array_element_position_ground v2.0.0, MSTN-09)
- array_element_position_utm.config.yml: array_element_position_utm-2.0.0.json
  (array_element_position_utm v2.0.0, MSTN-09)

Part of issue #1600.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Move mirror .dat resource to tests/resources/model_parameters/ using
  canonical DB filename (mirror_CTA-N-LST1_v2019-03-31_rotated.dat)
- Merge mirror_list_simtel_dat.config.yml into mirror_list.config.yml
  (both files now share the same collection output_path)
- Update test_mirrors.py fixture to use the new path

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@GernotMaier GernotMaier self-assigned this May 28, 2026
@GernotMaier GernotMaier added no-changelog-needed No Changelog entry required for this PR Skip review PR without required review labels May 28, 2026
@GernotMaier GernotMaier requested a review from Copilot May 28, 2026 12:12
@GernotMaier GernotMaier marked this pull request as ready for review May 28, 2026 12:12
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 aligns unit tests and test-resource generation workflows with the new tests/resources/model_parameters layout for model parameter files.

Changes:

  • Updates unit tests to read SPE and mirror-list resources from tests/resources/model_parameters.
  • Adds model-parameter resource files used by those tests.
  • Adds workflow configuration files for regenerating selected model-parameter test resources.

Reviewed changes

Copilot reviewed 8 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/unit_tests/visualization/test_plot_tables.py Points table-reading tests to the model-parameter resource directory.
tests/unit_tests/simtel/test_simtel_table_reader.py Updates SPE fixture path.
tests/unit_tests/reporting/test_docs_read_parameters.py Updates valid SPE file path.
tests/unit_tests/model/test_mirrors.py Uses the relocated/generated mirror-list resource.
tests/resources/model_parameters/spe_LST_2022-04-27_AP2.0e-4.dat Adds SPE model-parameter data resource.
tests/resources/model_parameters/mirror_CTA-N-LST1_v2019-03-31_rotated.dat Adds mirror-list model-parameter data resource.
tests/resources_generation/model_parameters/pm_photoelectron_spectrum.config.yml Adds workflow config to regenerate SPE resource.
tests/resources_generation/model_parameters/mirror_list.config.yml Adds workflow config to regenerate mirror-list resources.
tests/resources_generation/model_parameters/array_element_position_utm.config.yml Adds workflow config to regenerate UTM position resource.
tests/resources_generation/model_parameters/array_element_position_ground.config.yml Adds workflow config to regenerate ground-position resource.

@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

@GernotMaier GernotMaier merged commit d61b904 into tests-resources May 28, 2026
16 checks passed
@GernotMaier GernotMaier deleted the test-sources-v2 branch May 28, 2026 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog-needed No Changelog entry required for this PR Skip review PR without required review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants