sweeptools.py¶
- sweep_param_grid(in_params)[source]¶
Helper function for generating grid parameter sweeps for all possible combinations of modified variables in the simulation chain.
- Parameters:
in_params (
list[dict[str,list[Any]] | None]
) – List of the same length as the simulation input modifier/runner list where each dictionary corresponds to the variables that will be modified for the corresponding simulation tool. The variables should be keyed by their string identigfier in the simulation input file and the list should contain all unique values of the variables to analyse.- Returns:
list[list[dict[str,Any] | None]]
– The outer list is for each unique parameter combination. The inner list position corresponds to the simulation input modifier/runner position in the simulation chain. The dictionary is then keyed by the variable name in the corresponding input file and the unique value the variable takes for this combination of parameters.