Move warp time subwarp speed calculation to separate cache as well

This commit is contained in:
DarkPhoenix
2019-07-04 11:40:38 +03:00
parent 193fcc60d8
commit 15b6a848e8
3 changed files with 29 additions and 16 deletions

View File

@@ -207,5 +207,17 @@ class FitGraph(metaclass=ABCMeta):
current += step
class FitDataCache:
def __init__(self):
self._data = {}
def clear(self, fitID):
if fitID is None:
self._data.clear()
elif fitID in self._data:
del self._data[fitID]
# noinspection PyUnresolvedReferences
from gui.builtinGraphs import *