From 73409a332499e754e14696140c262071d5b852d4 Mon Sep 17 00:00:00 2001 From: OISumeko Date: Sat, 31 Oct 2015 14:14:44 +1300 Subject: [PATCH] Fix for issue 300 Modified capsim so that for non-capstable fits, the capacitor time will indicate the time at which the first module failed to activate due to insufficient capacitor rather than the time of the last successful activation. --- eos/capSim.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eos/capSim.py b/eos/capSim.py index e4e21631b..729a078a3 100644 --- a/eos/capSim.py +++ b/eos/capSim.py @@ -169,13 +169,13 @@ class CapSimulator(object): iterations += 1 + t_last = t_now + if cap < cap_lowest: if cap < 0.0: break cap_lowest = cap - t_last = t_now - # queue the next activation of this module t_now += duration shot += 1