pympi/Elan.py
def rename_tier(self, id_from, id_to):
        """Rename a tier. Note that this renames also the child tiers that have
        the tier as a parent.

        :param str id_from: Original name of the tier.
        :param str id_to: Target name of the tier.
        :throws KeyError: If the tier doesnt' exist.
        """
        childs = self.get_child_tiers_for(id_from)
        self.tiers[id_to] = self.tiers.pop(id_from)
        self.tiers[id_to][2]['TIER_ID'] = id_to
        for child in childs:
            self.tiers[child][2]['PARENT_REF'] = id_to
def rename_tier(self, id_from, id_to):
        childs = self.get_child_tiers_for(id_from)
        self.tiers[id_to] = self.tiers.pop(id_from)
        self.tiers[id_to][2]['TIER_ID'] = id_to
        for child in childs:
            self.tiers[child][2]['PARENT_REF'] = id_to
def rename_tier ( self , id_from , id_to ) : childs = self . get_child_tiers_for ( id_from ) self . tiers [ id_to ] = self . tiers . pop ( id_from ) self . tiers [ id_to ] [ 2 ] [ 'TIER_ID' ] = id_to for child in childs : self . tiers [ child ] [ 2 ] [ 'PARENT_REF' ] = id_to
Rename a tier. Note that this renames also the child tiers that have
        the tier as a parent.

        :param str id_from: Original name of the tier.
        :param str id_to: Target name of the tier.
        :throws KeyError: If the tier doesnt' exist.
Rename a tier . Note that this renames also the child tiers that have the tier as a parent .