Beispiel #1
0
 def __init__(self, cactusHistory):
     super(OrderedHistory, self).__init__(cactusHistory.cactus)
     self.copy(cactusHistory)
     self.eventCosts = cactusHistory.eventCosts
     self.ordering = PartialOrderSet(X for X in self.parent)
     for event in self.parent:
         if self.parent[event] is not None and (
                 debug.DEBUG or event.ratio > debug.RATIO_CUTOFF):
             assert self.ordering.addConstraint(self.parent[event], event)