pypet/trajectory.py
def _finalize_run(self):
        """Called by the environment after storing to perform some rollback operations.

        All results and derived parameters created in the current run are removed.

        Important for single processing to not blow up the parent trajectory with the results
        of all runs.

        """
        self._run_information[self.v_crun]['completed'] = 1
        while len(self._new_links):
            name_pair, child_parent_pair = self._new_links.popitem(last=False)
            parent_node, _ = child_parent_pair
            _, link = name_pair
            parent_node.f_remove_child(link)

        while len(self._new_nodes):
            _, child_parent_pair = self._new_nodes.popitem(last=False)
            parent, child = child_parent_pair
            child_name = child.v_name
            parent.f_remove_child(child_name, recursive=True)
def _finalize_run(self):
        self._run_information[self.v_crun]['completed'] = 1
        while len(self._new_links):
            name_pair, child_parent_pair = self._new_links.popitem(last=False)
            parent_node, _ = child_parent_pair
            _, link = name_pair
            parent_node.f_remove_child(link)

        while len(self._new_nodes):
            _, child_parent_pair = self._new_nodes.popitem(last=False)
            parent, child = child_parent_pair
            child_name = child.v_name
            parent.f_remove_child(child_name, recursive=True)
def _finalize_run ( self ) : self . _run_information [ self . v_crun ] [ 'completed' ] = 1 while len ( self . _new_links ) : name_pair , child_parent_pair = self . _new_links . popitem ( last = False ) parent_node , _ = child_parent_pair _ , link = name_pair parent_node . f_remove_child ( link ) while len ( self . _new_nodes ) : _ , child_parent_pair = self . _new_nodes . popitem ( last = False ) parent , child = child_parent_pair child_name = child . v_name parent . f_remove_child ( child_name , recursive = True )
Called by the environment after storing to perform some rollback operations.

        All results and derived parameters created in the current run are removed.

        Important for single processing to not blow up the parent trajectory with the results
        of all runs.
Called by the environment after storing to perform some rollback operations .