core.module_management.get_module_paras¶
- core.module_management.get_module_paras(path_module=None, module_name=None)¶
Used to get all parameters and their values from a given module. All parameter files should be toml format and all parameters should be defined under a “[para]” flag.
- Parameters:
path_module (posix path or string)
module_name (string) – can be of the form “CM” for the module without flavour or “FP|L1” for a module with flavour. See find_actual_module_name for more details.
- Returns:
module_paras (dict) – Keys are names of parameters, values are the values of parameters
WARNING (this function takes the first files starting with “paras_” as the parameter file.)
TODO (fix that for flavours.)