-
Notifications
You must be signed in to change notification settings - Fork 3
Allow for validation of simtools-generated configuration files for sim_telarray with reference files. #1322
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
Conversation
… in integration tests
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
EshitaJoshi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good. I have only skimmed at the config files and not reviewed them, as you said. Two questions - why are we not including units information for the parameters? And, how are these config files going to be updated when the model parameters are updated in the future? Will that have to be done manually?
These are configuration files used by sim_telarray. There are 'expected' units for sim_telarray which we have written up in the schema files. All value sin sim_telarray needs to be given in these expected units.
We don't expect any updates to these reference files (until we see bugs), as we don't expect any future model versions to be distributed with sim_telarray (they will be distributed using simtools and the Simulation-Models database). So the tests included in this PR are ensuring that our base models (prod5/prod6) are correct (plus all the machinery to write these base models in simtools) |
Analysis Details1 IssueCoverage and DuplicationsProject ID: gammasim_simtools_AY_ssha9WiFxsX-2oy_w |
EshitaJoshi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code is good, thanks for the PR!
|
@EshitaJoshi - thank you! |
Add functionality to compare simtools-generated configuration files for sim_telarray with reference file:
simulate_prod_gamma_40_deg_North_check_output.ymlandsimulate_prod_gamma_40_deg_South_check_output.yml(see the keywordTEST_SIMTEL_CFG_FILES)simulate_prod_gamma_40_deg_South_check_output.ymlto beta layout to allow to test alsoLSTSSome minor fine tuning in the file comparison is required as lines like
labeland 'config_version' (as they change for different integration tests).Note: there is no need to review the reference configuration files in
tests/resources/sim_telarray_configurations.Important!! Model parameters in the reference files are not entirely correct but are 'as exported' from the current version of the model parameter database. #1326 provides corrections so that the model parameters will be correct.