Re-enable DPS graph and make few fixes

This commit is contained in:
DarkPhoenix
2019-06-28 10:13:03 +03:00
parent 66ff4d827c
commit c2017f3cb9
3 changed files with 3 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
# noinspection PyUnresolvedReferences
from gui.builtinGraphs import ( # noqa: E402,F401
# fitDamageStats,
fitDamageStats,
# fitDmgVsTime,
# fitShieldRegenVsShieldPerc,
# fitShieldAmountVsTime,

View File

@@ -96,8 +96,7 @@ class Graph(metaclass=ABCMeta):
self._cache.clear()
elif key in self._cache:
del self._cache[key]
for yDef in self.yDefs:
getattr(self, yDef.eosGraph).clearCache(key=key)
self._eosGraph.clearCache(key=key)
YDef = namedtuple('YDef', ('handle', 'unit', 'label'))

View File

@@ -206,7 +206,7 @@ class GraphFrame(wx.Frame):
fits = self.ctrlPanel.fits
if view.hasTargets:
targets = self.ctrlPanel.targets
iterList = tuple(itertools.combinations(fits, targets))
iterList = tuple(itertools.product(fits, targets))
else:
iterList = tuple((f, None) for f in fits)
for fit, target in iterList: