peal.global_utils.integrate_arguments¶
- peal.global_utils.integrate_arguments(args, config, exclude=[])[source]¶
Apply all parsed command line arguments to a config.
Calls
integrate_argument()for every attribute ofargsthat is not listed inexcludeand finally re-runspropagate_seed(), so that a seed given on the command line also reaches the sub-configs.- Parameters:
args (
argparse.Namespace) – Parsed arguments.config (
object) – Config to modify in place.exclude (
listofstr, optional) – Argument names that are not config fields (for example the config path itself).