فهرست منبع

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

Yentl Van Tendeloo 10 سال پیش
والد
کامیت
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"