CADETProcess.dataStructure.nested_dict.get_nested_list_value

CADETProcess.dataStructure.nested_dict.get_nested_list_value#

CADETProcess.dataStructure.nested_dict.get_nested_list_value(ls: Sequence[Any], idx_tuple: tuple[int, ...]) Any[source]#

Retrieve a value from a nested list structure using an index tuple.

Parameters:
lsSequence[Any]

The nested list structure.

idx_tupletuple[int, …]

A tuple of indices specifying the path to the desired value.

Returns:
Any

The value at the specified nested position.

Raises:
IndexError

If any index in the path is out of range.