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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user