From fc733b5283e036c085c7158ef8ba0f7d7c5b1f52 Mon Sep 17 00:00:00 2001 From: "Joshua E. Jodesty" Date: Wed, 21 Nov 2018 13:50:09 -0500 Subject: [PATCH] reset to Genesis value between runs --- SimCAD/engine/simulation.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/SimCAD/engine/simulation.py b/SimCAD/engine/simulation.py index 317a87b..a0a925a 100644 --- a/SimCAD/engine/simulation.py +++ b/SimCAD/engine/simulation.py @@ -94,13 +94,9 @@ class Executor: pipe_run = [] for run in range(runs): run += 1 - if run == 1: - head, *tail = self.pipe(states_list, configs, env_processes, time_seq, run) - head[-1]['mech_step'], head[-1]['time_step'], head[-1]['run'] = 0, 0, 0 - simulation_list = [head] + tail - pipe_run += simulation_list - else: - _, *tail = self.pipe(states_list, configs, env_processes, time_seq, run) - pipe_run += tail + head, *tail = self.pipe(states_list, configs, env_processes, time_seq, run) + head[-1]['mech_step'], head[-1]['time_step'], head[-1]['run'] = 0, 0, run + simulation_list = [head] + tail + pipe_run += simulation_list return pipe_run \ No newline at end of file