openmc.data.Combination¶
- class openmc.data.Combination(functions, operations)[source]¶
Combination of multiple functions with a user-defined operator
This class allows you to create a callable object which represents the combination of other callable objects by way of a series of user-defined operators connecting each of the callable objects.
- Parameters
functions (Iterable of Callable) – Functions to combine according to operations
operations (Iterable of numpy.ufunc) – Operations to perform between functions; note that the standard order of operations will not be followed, but can be simulated by combinations of Combination objects. The operations parameter must have a length one less than the number of functions.
- Variables
functions (Iterable of Callable) – Functions to combine according to operations
operations (Iterable of numpy.ufunc) – Operations to perform between functions; note that the standard order of operations will not be followed, but can be simulated by combinations of Combination objects. The operations parameter must have a length one less than the number of functions.