shnitsel.data.shnitsel_db.helpers¶
Functions¶
Function to set the labels in a children-dict for a DataTree. |
Module Contents¶
- traj_list_to_child_mapping(list)¶
Function to set the labels in a children-dict for a DataTree.
Will enumerate individual trajectories and assign the group name to groups.
- Parameters:
list (Iterable[TrajectoryData | TrajectoryGroup]) – The list of groups and Trajectories
- Returns:
The dict mapping labels to children
- Return type:
Mapping[str, TrajectoryData | TrajectoryGroup]