MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / _prepareApplicationMap

Method _prepareApplicationMap

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

Source from the content-addressed store, hash-verified

195class XTimeMixin(PointGetter):
196
197 def _prepareApplicationMap(self, miscParams, src, tgt):
198 tgtSpeed = miscParams['tgtSpeed']
199 tgtSigRadius = tgt.getSigRadius()
200 if GraphSettings.getInstance().get('applyProjected'):
201 srcScramRange = getScramRange(src=src)
202 tgtScrammables = getScrammables(tgt=tgt)
203 webMods, tpMods = self.graph._projectedCache.getProjModData(src)
204 webDrones, tpDrones = self.graph._projectedCache.getProjDroneData(src)
205 webFighters, tpFighters = self.graph._projectedCache.getProjFighterData(src)
206 tgtSpeed = getTackledSpeed(
207 src=src,
208 tgt=tgt,
209 currentUntackledSpeed=tgtSpeed,
210 srcScramRange=srcScramRange,
211 tgtScrammables=tgtScrammables,
212 webMods=webMods,
213 webDrones=webDrones,
214 webFighters=webFighters,
215 distance=miscParams['distance'])
216 tgtSigRadius = tgtSigRadius * getSigRadiusMult(
217 src=src,
218 tgt=tgt,
219 tgtSpeed=tgtSpeed,
220 srcScramRange=srcScramRange,
221 tgtScrammables=tgtScrammables,
222 tpMods=tpMods,
223 tpDrones=tpDrones,
224 tpFighters=tpFighters,
225 distance=miscParams['distance'])
226 # Get all data we need for all times into maps/caches
227 applicationMap = getApplicationPerKey(
228 src=src,
229 tgt=tgt,
230 atkSpeed=miscParams['atkSpeed'],
231 atkAngle=miscParams['atkAngle'],
232 distance=miscParams['distance'],
233 tgtSpeed=tgtSpeed,
234 tgtAngle=miscParams['tgtAngle'],
235 tgtSigRadius=tgtSigRadius)
236 return applicationMap
237
238 def getRange(self, xRange, miscParams, src, tgt):
239 xs = []

Callers 2

getRangeMethod · 0.95
getPointMethod · 0.95

Calls 11

getScramRangeFunction · 0.85
getScrammablesFunction · 0.85
getTackledSpeedFunction · 0.85
getSigRadiusMultFunction · 0.85
getSigRadiusMethod · 0.80
getProjModDataMethod · 0.80
getProjDroneDataMethod · 0.80
getProjFighterDataMethod · 0.80
getApplicationPerKeyFunction · 0.50
getMethod · 0.45
getInstanceMethod · 0.45

Tested by

no test coverage detected