MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / getPlotPoints

Method getPlotPoints

graphs/data/base/graph.py:96–105  ·  view source on GitHub ↗
(self, mainInput, miscInputs, xSpec, ySpec, src, tgt=None)

Source from the content-addressed store, hash-verified

94 usesHpEffectivity = False
95
96 def getPlotPoints(self, mainInput, miscInputs, xSpec, ySpec, src, tgt=None):
97 cacheKey = self._makeCacheKey(src=src, tgt=tgt)
98 try:
99 plotData = self._plotCache[cacheKey][(ySpec, xSpec)]
100 except KeyError:
101 plotData = self._calcPlotPoints(
102 mainInput=mainInput, miscInputs=miscInputs,
103 xSpec=xSpec, ySpec=ySpec, src=src, tgt=tgt)
104 self._plotCache.setdefault(cacheKey, {})[(ySpec, xSpec)] = plotData
105 return plotData
106
107 def getPoint(self, x, miscInputs, xSpec, ySpec, src, tgt=None):
108 cacheKey = self._makeCacheKey(src=src, tgt=tgt)

Callers 1

drawMethod · 0.80

Calls 2

_makeCacheKeyMethod · 0.95
_calcPlotPointsMethod · 0.95

Tested by

no test coverage detected