pypet/trajectory.py
def f_remove(self, recursive=True, predicate=None):
        """Recursively removes all children of the trajectory

        :param recursive:

            Only here for consistency with signature of parent method. Cannot be set
            to `False` because the trajectory root node cannot be removed.

        :param predicate:

            Predicate which can evaluate for each node to ``True`` in order to remove the node or
            ``False`` if the node should be kept. Leave ``None`` if you want to remove all nodes.

        """
        if not recursive:
            raise ValueError('Nice try ;-)')

        for child in list(self._children.keys()):
            self.f_remove_child(child, recursive=True, predicate=predicate)
def f_remove(self, recursive=True, predicate=None):
        if not recursive:
            raise ValueError('Nice try ;-)')

        for child in list(self._children.keys()):
            self.f_remove_child(child, recursive=True, predicate=predicate)
def f_remove ( self , recursive = True , predicate = None ) : if not recursive : raise ValueError ( 'Nice try ;-)' ) for child in list ( self . _children . keys ( ) ) : self . f_remove_child ( child , recursive = True , predicate = predicate )
Recursively removes all children of the trajectory

        :param recursive:

            Only here for consistency with signature of parent method. Cannot be set
            to `False` because the trajectory root node cannot be removed.

        :param predicate:

            Predicate which can evaluate for each node to ``True`` in order to remove the node or
            ``False`` if the node should be kept. Leave ``None`` if you want to remove all nodes.
Recursively removes all children of the trajectory