Remove unneeded property

This commit is contained in:
DarkPhoenix
2019-08-04 00:00:53 +03:00
parent e821b2d09c
commit 885a3f1ac9
3 changed files with 10 additions and 11 deletions

View File

@@ -92,11 +92,14 @@ class FitGraph(metaclass=ABCMeta):
def getPlotPoints(self, mainInput, miscInputs, xSpec, ySpec, src, tgt=None):
if tgt is not None and tgt.isFit:
tgtType = 'fit'
tgtItemID = tgt.item.ID
elif tgt is not None and tgt.isProfile:
tgtType = 'profile'
tgtItemID = tgt.item.ID
else:
tgtType = None
cacheKey = (src.itemID, tgtType, getattr(tgt, 'itemID', None))
tgtItemID = None
cacheKey = (src.item.ID, tgtType, tgtItemID)
try:
plotData = self._plotCache[cacheKey][(ySpec, xSpec)]
except KeyError: