hpcflow.sdk.core.utils.set_in_container#
- hpcflow.sdk.core.utils.set_in_container(cont, path, value, ensure_path=False, cast_indices=False)#
Follow a path (sequence of indices of appropriate type) into a container to update a “leaf” value. Containers can be lists, tuples or dicts. The “branch” holding the leaf to update must be modifiable.