Clear plot cache properly when target is modified

This commit is contained in:
DarkPhoenix
2019-07-08 07:34:09 +03:00
parent eda869fe0d
commit a64fbd8976

View File

@@ -94,7 +94,7 @@ class FitGraph(metaclass=ABCMeta):
hasTargets = False
def getPlotPoints(self, mainInput, miscInputs, xSpec, ySpec, fit, tgt=None):
cacheKey = (fit.ID, None, tgt)
cacheKey = (fit.ID, None, tgt.ID)
try:
plotData = self._plotCache[cacheKey][(ySpec, xSpec)]
except KeyError: