pyprobe.utils module#
A collection of utility functions for PyProBE.
- flatten_list(lst)#
- Flatten a list of lists into a single list. - Parameters:
- lst (list) – The list of lists to flatten. 
- Returns:
- The flattened list. 
- Return type:
- list 
 
- class PyBaMMSolution(*args, **kwargs)#
- Bases: - Protocol- Protocol defining required PyBaMM Solution interface. - get_data_dict(variables=None, short_names=None, cycles_and_steps=True)#
- Get solution data as dictionary. - Parameters:
- variables (List[str] | None) 
- short_names (Dict[str, str] | None) 
- cycles_and_steps (bool) 
 
- Return type:
- Dict[str, Any]