瀏覽代碼

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"