Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional queries to db handler to retrieve model versions etc. #1349

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

GernotMaier
Copy link
Contributor

Additional database queries are required to generate the model parameter reports, see issue #1344 👍

  • return list of all available model versions in the DB: new db_handler.get_model_versions()
  • return list of array elements / site for a given model version: new db_handler.get_array_elements() (default collection is telescopes, but can also be e.g. calibration_devices
  • return all model parameters (all parameter versions) for a given array element: updated db_handler.get_model_parameters() and allow model_version to be None (or a list of model versions). If None, the parameters for all available model versions is returned.

Closes #1344

@GernotMaier GernotMaier self-assigned this Feb 4, 2025

This comment has been minimized.

Copy link

Passed

Analysis Details

0 Issues

  • Bug 0 Bugs
  • Vulnerability 0 Vulnerabilities
  • Code Smell 0 Code Smells

Coverage and Duplications

  • Coverage 100.00% Coverage (93.80% Estimated after merge)
  • Duplications 0.00% Duplicated Code (0.00% Estimated after merge)

Project ID: gammasim_simtools_AY_ssha9WiFxsX-2oy_w

View in SonarQube

@GernotMaier GernotMaier marked this pull request as ready for review February 4, 2025 14:05
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.

Additional DB queries needed for model parameter reporting
1 participant