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

Method _getCommonData

graphs/data/fitDamageStats/getter.py:315–323  ·  view source on GitHub ↗
(self, miscParams, src, tgt)

Source from the content-addressed store, hash-verified

313 _extraDepth = 2
314
315 def _getCommonData(self, miscParams, src, tgt):
316 # Prepare time cache here because we need to do it only once,
317 # and this function is called once per point info fetch
318 self._prepareTimeCache(src=src, maxTime=miscParams['time'])
319 return {
320 'applyProjected': GraphSettings.getInstance().get('applyProjected'),
321 'dmgMap': self._getDamagePerKey(src=src, time=miscParams['time']),
322 'tgtResists': tgt.getResists(),
323 'tgtFullHp': tgt.getFullHp()}
324
325 def _calculatePoint(self, x, miscParams, src, tgt, commonData):
326 tgtSpeed = x

Callers

nothing calls this directly

Calls 6

getResistsMethod · 0.80
getFullHpMethod · 0.80
_prepareTimeCacheMethod · 0.45
getMethod · 0.45
getInstanceMethod · 0.45
_getDamagePerKeyMethod · 0.45

Tested by

no test coverage detected