PARSING_UTILS

PARSING_UTILS#

parsing_utils.ArgumentStruct(**entries)

Class that converts a python dictionary into an object with named entries given by the dictionary keys.

parsing_utils.ListOfListsAction(...)

This class extends the argparse.Action class by instantiating an argparser that constructs a list-of-lists from an input (command-line option or argument) given as a string.

parsing_utils.ParseDict

Definition of the dictionary structure expected for the parsing of parameters.

parsing_utils.ConfigDict

Definition of the dictionary structure expected for the configuration of parameters.

parsing_utils.extract_keywords(lst_dict, kw)

Extract the value associated to a specific keyword in a list of dictionaries.

parsing_utils.check_flag_conflicts(params)

Check if parameters that must be exclusive are used in conjunction.

parsing_utils.check_file_parameters_exists(...)

Functionality to verify that the parameters defined in the configuration file are recognizable by the command line parser (i.e. no uknown keywords are used in the configuration file).

parsing_utils.finalize_parameters(bmk)

Utility to parse parameters in common as well as parameters particular to each benchmark.

parsing_utils.args_overwrite_config(args, config)

Overwrite configuration parameters with parameters specified via command-line.

parsing_utils.get_choice(name)

Maps name string to the right type of argument.

parsing_utils.parse_from_dictlist(dictlist, ...)

Functionality to parse options.

parsing_utils.parse_common(parser)

Functionality to parse options.