Skip to content

AthConfigFlags: improve type checking

Frank Winklmeier requested to merge fwinkl/athena:flags_type into main

Introduce "compatible types" that can be implicitly converted to each other (e.g. assigning an int to a float flag).

Also ensure that the type checking is done when assigning flags from the command line. Previously, assigning a float value to an int flag would explicitly convert the value to an integer (and cut off the decimals) without error message.

Also add flag type to help message, e.g.:

  Input.RunNumbers      [type: list] (default: None)

cc @tadej

Merge request reports