diff --git a/engine.py b/engine.py index 0fc0659..1ea7143 100755 --- a/engine.py +++ b/engine.py @@ -60,6 +60,7 @@ def main(): start_time = datetime.now() #matrix.run() + matrix.boot() matrix.run_singlethread() end_time = datetime.now() matrix.run_interviews() diff --git a/src/matrix.py b/src/matrix.py index e690b50..c786eff 100644 --- a/src/matrix.py +++ b/src/matrix.py @@ -119,8 +119,10 @@ def from_timeline(cls,src,step=None): matrix = Matrix(record['data']) elif matrix: if record['step_type'] == 'agent_init': + #data config = record config['matrix'] = matrix + # is this some kind of double linking agent = Agent(config) matrix.add_agent_to_simulation(agent) elif record['step_type'] == "agent_set": @@ -303,7 +305,7 @@ def log_agents_to_redis(self): redis_connection.rpush(f"{self.id}:agents:{agent.name}", json.dumps(agent_data)) def run_singlethread(self): - self.boot() + #self.boot() self.status = "running" self.sim_start_time = datetime.now() self.send_matrix_to_redis()