From c3f41d68e61c523c17867411bbfd11c60c92e469 Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Sat, 18 May 2019 11:19:08 +0300 Subject: [PATCH] Round in getYforX as well --- eos/graph/fitDmgVsTime.py | 2 +- eos/graph/fitDpsVsTime.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eos/graph/fitDmgVsTime.py b/eos/graph/fitDmgVsTime.py index 67487c95a..6c00ff450 100644 --- a/eos/graph/fitDmgVsTime.py +++ b/eos/graph/fitDmgVsTime.py @@ -78,7 +78,7 @@ class FitDmgVsTimeGraph(Graph): closestTime = max((t for t in cache if t <= time), default=None) if closestTime is None: return 0 - return cache[closestTime] + return roundToPrec(cache[closestTime], 6) def __generateCache(self, fit, maxTime): cache = self.cache[fit.ID] = {} diff --git a/eos/graph/fitDpsVsTime.py b/eos/graph/fitDpsVsTime.py index 19433f834..a538bd090 100644 --- a/eos/graph/fitDpsVsTime.py +++ b/eos/graph/fitDpsVsTime.py @@ -80,7 +80,7 @@ class FitDpsTimeGraph(Graph): closestTime = max((t for t in cache if t <= time), default=None) if closestTime is None: return 0 - return cache[closestTime] + return roundToPrec(cache[closestTime], 6) def __generateCache(self, fit, maxTime): cache = []