Simulation Models Databases#
The following applications are useful for testing, maintenance or debugging the simulation model database. Note that the remote primary production database is modified only by the simulation models gitlab CI.
Inspecting the model database#
Applications to retrieve values or information from the database:
list all databases and collections defined: simtools-db-inspect-databases
retrieve a single model parameter: simtools-db-get-parameter-from-db
retrieve a model parameter file: simtools-db-get-file-from-db
retrieve and print array layouts defined in the database: simtools-db-get-array-layouts-from-db
Updating the model database#
Danger
The following sections describe functionality which might impact the simulation model database for all users. Generally, model values should not be changed without a merge request in the simulation models repository Tests should be done using a sandbox database before applying this to the production databases.
Applications modifying database entries:
update or define a single model parameter from a json file (as defined in the model parameter repository): simtools-db-add-value-from-json-to-db
upload a model parameter file: simtools-db-add-file-to-db
upload all model parameters and files from the model parameter repository: simtools-db-add-simulation-model-from-repository-to-db