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

Function _snapshotForCurrentCharge

graphs/data/fitDamageEnvelope/getter.py:104–110  ·  view source on GitHub ↗

Build a snapshot dict for whatever charge is currently loaded on mod.

(mod)

Source from the content-addressed store, hash-verified

102
103
104def _snapshotForCurrentCharge(mod):
105 """Build a snapshot dict for whatever charge is currently loaded on mod."""
106 spoolOptions = SpoolOptions(SpoolType.SPOOL_SCALE, eos.config.settings['globalDefaultSpoolupPercentage'], False)
107 dmgTyped = mod.getDps(spoolOptions=spoolOptions)
108 if mod.hardpoint == FittingHardpoint.TURRET:
109 return _snapshotTurret(mod, dmgTyped, mod.charge)
110 return _snapshotMissile(mod, dmgTyped, mod.charge)
111
112
113def _collectWeaponCandidates(src):

Callers

nothing calls this directly

Calls 3

_snapshotTurretFunction · 0.85
_snapshotMissileFunction · 0.85
getDpsMethod · 0.45

Tested by

no test coverage detected