Преглед изворни кода

Fixed model with the new yield's, and finally gave it its own branch

Yentl Van Tendeloo пре 9 година
родитељ
комит
92df6ee892
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      model/model.py

+ 2 - 2
model/model.py

@@ -205,13 +205,13 @@ class ModelverseKernel(AtomicDEVS):
                 if self.state.reply is None:
                     commands = [("RDK", [self.state.root])]
                 else:
-                    self.state.users = self.state.reply
+                    self.state.users = self.state.reply[0]
                     commands = None
             elif self.state.phase == "init_user":
                 if self.state.reply is None:
                     commands = [("RV", [self.state.users[0]])]
                 else:
-                    self.state.current_user = self.state.reply
+                    self.state.current_user = self.state.reply[0]
                     if self.state.current_user.startswith("__"):
                         # Don't process this user and force termination of user
                         self.state.phase = "output"