CADETProcess.parameter_space.CallableMapper

Contents

CADETProcess.parameter_space.CallableMapper#

class CADETProcess.parameter_space.CallableMapper(evaluation_objects: Sequence[Any], fn: Callable[[Any, Any], None])[source]#

Bases: ParameterMapperBase

Write 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.