src/orion/core/worker/trials_history.py
def update(self, trials):
        """Update the list of children trials

        The children history only keeps children. Current children that are now ancestors of
        the new nodes are discarded from the history. This is because we can rebuild the entire
        history from the current children, therefore we only need to keep those.
        """
        descendents = set(self.children)
        for trial in trials:
            descendents -= set(trial.parents)
            descendents.add(trial.id)

        self.ids |= descendents

        self.children = list(sorted(descendents))
Update the list of children trials

        The children history only keeps children. Current children that are now ancestors of
        the new nodes are discarded from the history. This is because we can rebuild the entire
        history from the current children, therefore we only need to keep those.
        
Update the list of children trials
The children history only keeps children. Current children that are now ancestors of
the new nodes are discarded from the history. This is because we can rebuild the entire
history from the current children, therefore we only need to keep those.
Update the list of children trials The children history only keeps children . Current children that are now ancestors of the new nodes are discarded from the history . This is because we can rebuild the entire history from the current children therefore we only need to keep those .
def update(self, trials):
        descendents = set(self.children)
        for trial in trials:
            descendents -= set(trial.parents)
            descendents.add(trial.id)
        self.ids |= descendents
        self.children = list(sorted(descendents))
def update ( self , trials ) : descendents = set ( self . children ) for trial in trials : descendents -= set ( trial . parents ) descendents . add ( trial . id ) self . ids |= descendents self . children = list ( sorted ( descendents ) )
Update the list of children trials
The children history only keeps children.
Update the list of children trials The children history only keeps children .
"""Update the list of children trials

        The children history only keeps children. Current children that are now ancestors of
        the new nodes are discarded from the history. This is because we can rebuild the entire
        history from the current children, therefore we only need to keep those.
        """
self
trials