Plug new cache format into dmg vs time graph
This commit is contained in:
@@ -125,13 +125,17 @@ class FitDamageStatsGraph(FitGraph):
|
|||||||
def _time2damage(self, mainInput, miscInputs, fit, tgt):
|
def _time2damage(self, mainInput, miscInputs, fit, tgt):
|
||||||
xs = []
|
xs = []
|
||||||
ys = []
|
ys = []
|
||||||
|
|
||||||
|
def calcDamageTmp(timeDmg):
|
||||||
|
return roundToPrec(sum(dt.total for dt in timeDmg.values()), 6)
|
||||||
|
|
||||||
minTime, maxTime = mainInput[1]
|
minTime, maxTime = mainInput[1]
|
||||||
self._generateTimeCacheDmg(fit, maxTime)
|
self._generateTimeCacheDmg(fit, maxTime)
|
||||||
cache = self._calcCache[fit.ID]['timeDmg']
|
cache = self._calcCache[fit.ID]['timeCache']['finalDmg']
|
||||||
currentDmg = None
|
currentDmg = None
|
||||||
for currentTime in sorted(cache):
|
for currentTime in sorted(cache):
|
||||||
prevDmg = currentDmg
|
prevDmg = currentDmg
|
||||||
currentDmg = roundToPrec(cache[currentTime], 6)
|
currentDmg = calcDamageTmp(cache[currentTime])
|
||||||
if currentTime < minTime:
|
if currentTime < minTime:
|
||||||
continue
|
continue
|
||||||
# First set of data points
|
# First set of data points
|
||||||
|
|||||||
Reference in New Issue
Block a user