diff --git a/ciw/simulation.py b/ciw/simulation.py index d2adbe3..5279550 100644 --- a/ciw/simulation.py +++ b/ciw/simulation.py @@ -22,7 +22,7 @@ def __init__( network, exact=False, name="Simulation", - tracker=trackers.StateTracker(), + tracker=None, deadlock_detector=deadlock.NoDetection(), node_class=None, arrival_node_class=None, @@ -51,7 +51,10 @@ def __init__( self.nodes = [self.ArrivalNodeType(self)] + self.transitive_nodes + [ExitNode()] self.active_nodes = self.nodes[:-1] self.nodes[0].initialise() - self.statetracker = tracker + if tracker is None: + self.statetracker = trackers.StateTracker() + else: + self.statetracker = tracker self.statetracker.initialise(self) self.times_dictionary = {self.statetracker.hash_state(): 0.0} self.times_to_deadlock = {}