소스 검색

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

Yentl Van Tendeloo 9 년 전
부모
커밋
0fda000508
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"