src/bvhtoolbox/convert/csv2bvh.py
def _update_children(nodes):
    """ Fills the children property of joints.
    
    :param nodes: Dictionary with skeleton hierarchy.
    :type nodes: dict
    """
    for node, properties in nodes.items():
        parent = properties['parent']
        try:
            p_props = nodes[parent]
        except KeyError:
            if not parent:  # Root has no parent.
                continue
            raise ValueError("ERROR: Parent of {} cannot be found in the hierarchy definition!".format(node))
        p_children = p_props['children']
        p_children.append(node)
        p_props.update({'children': p_children})
 Fills the children property of joints.
    
    :param nodes: Dictionary with skeleton hierarchy.
    :type nodes: dict
    
Fills the children property of joints.
Fills the children property of joints .
def _update_children(nodes):
    for node, properties in nodes.items():
        parent = properties['parent']
        try:
            p_props = nodes[parent]
        except KeyError:
            if not parent:  
                continue
            raise ValueError("ERROR: Parent of {} cannot be found in the hierarchy definition!".format(node))
        p_children = p_props['children']
        p_children.append(node)
        p_props.update({'children': p_children})
def _update_children ( nodes ) : for node , properties in nodes . items ( ) : parent = properties [ 'parent' ] try : p_props = nodes [ parent ] except KeyError : if not parent : continue raise ValueError ( "ERROR: Parent of {} cannot be found in the hierarchy definition!" . format ( node ) ) p_children = p_props [ 'children' ] p_children . append ( node ) p_props . update ( { 'children' : p_children } )
Fills the children property of joints.
Fills the children property of joints .
""" Fills the children property of joints.
    
    :param nodes: Dictionary with skeleton hierarchy.
    :type nodes: dict
    """ # Root has no parent.
nodes
Dictionary with skeleton hierarchy.
Dictionary with skeleton hierarchy .