CADETProcess.parameter_space.DotPathMapper#
- class CADETProcess.parameter_space.DotPathMapper(evaluation_objects: Sequence[Any], path: str)[source]#
Bases:
ParameterMapperBaseWrite a value to the leaf referenced by a dot-separated path.
Traverses dicts and objects in any combination; missing hops raise. The leaf segment must be a string (attribute name or dict key). For array element writes use
IndexedMapper.- Parameters:
- evaluation_objectssequence
Objects to write into.
- pathstr
Dot-separated path to the target attribute or dict key. Must not contain bracket index notation (e.g.
"film_diffusion[2]").
- Raises:
- ValueError
If path ends with a bracket index. Use
IndexedMapperinstead.