Browse Source

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

Yentl Van Tendeloo 9 years ago
parent
commit
92df6ee892
1 changed files with 2 additions and 2 deletions
  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"