Skip to content

davinci script - adding create_options_template command

Davide Fazzini requested to merge dfazzini_improve_davinci_options into master

Improving the davinci script with two new features:

  • possibility to use shortcuts instead of the full name when calling an option via command line
    (e.g. -i instead of --inputfiledb)
  • new command create_option_templates for creating a template of the two options files that are usually used in a DaVinci job:
    • ./run davinci create-options-template job -f test_jobopt_template.yaml (for the joboptfile)
    • ./run davinci create-options-template data -f test_inputdb_template.yaml -k key_template (for the inputfiledb)

The new command allows also to fill the template interactively (via the -i argument) asking the user to insert the value for each option.
In addition, some unit tests are added to verify the correct behavior of the new features.

Addresses #27 (closed).

Work on DPA task https://gitlab.cern.ch/lhcb-dpa/project/-/issues/180.

Edited by Eduardo Rodrigues

Merge request reports