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

Method _getCommonData

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

Source from the content-addressed store, hash-verified

135 _extraDepth = 2
136
137 def _getCommonData(self, miscParams, src, tgt):
138 # Prepare time cache here because we need to do it only once,
139 # and this function is called once per point info fetch
140 self._prepareTimeCache(src=src, maxTime=miscParams['time'])
141 applyProjected = GraphSettings.getInstance().get('applyProjected')
142 return {
143 'applyProjected': applyProjected,
144 'srcScramRange': getScramRange(src=src) if applyProjected else None,
145 'tgtScrammables': getScrammables(tgt=tgt) if applyProjected else (),
146 'dmgMap': self._getDamagePerKey(src=src, time=miscParams['time']),
147 'tgtResists': tgt.getResists(),
148 'tgtFullHp': tgt.getFullHp()}
149
150 def _calculatePoint(self, x, miscParams, src, tgt, commonData):
151 distance = x

Callers

nothing calls this directly

Calls 8

getScramRangeFunction · 0.85
getScrammablesFunction · 0.85
getResistsMethod · 0.80
getFullHpMethod · 0.80
_prepareTimeCacheMethod · 0.45
getMethod · 0.45
getInstanceMethod · 0.45
_getDamagePerKeyMethod · 0.45

Tested by

no test coverage detected