simtools-maintain-simulation-model-add-production#

Generate a new simulation model production and update tables and model parameters.

This script is used to maintain the simulation model repository. It allows to create new production tables by copying an existing base version and applies modifications to production tables and model parameters as provided in a YAML file (see the example file below).

Two main use cases are covered by this script:

  1. full_update: Create a complete new set of production tables (e.g. for new major or minor versions of the simulation models). This will copy all production tables from the source directory and apply the modifications to the tables that are listed in the modifications file.

  2. patch_update: Create a set of new production tables including the changes defined in the modifications file. No unmodified tables are copied. For new production tables with patch modifications, the key-value pair ‘base_model_version: <base_model version>’ is added.

Both use cases will also apply the modifications to the model parameters as defined in the modifications file.

Example#

The following example applies a patch update with changes defined in a YAML file.

simtools-maintain-simulation-model-add-new-production \\
    --simulation_models_path ../simulation-models-dev/simulation-models/ \\
    --base_model_version 6.0.0 \\
    --modifications tests/resources/production_tables_changes_for_threshold_study_6.2.0.yml \\
    --patch_update