CADETProcess.parameter_space.CallableMapper#
- class CADETProcess.parameter_space.CallableMapper(evaluation_objects: Sequence[Any], fn: Callable[[Any, Any], None])[source]#
Bases:
ParameterMapperBaseWrite a value by delegating to a user-supplied function.
The callable receives
(evaluation_object, value)and is responsible for the actual write. This is the escape hatch for any target that cannot be expressed as a dot-path.- Parameters:
- evaluation_objectssequence
Objects to write into.
- fnCallable[[Any, Any], None]
Function called as
fn(obj, value)for each evaluation object.