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

Function applyReps

graphs/data/fitRemoteReps/getter.py:28–34  ·  view source on GitHub ↗
(rrMap, applicationMap)

Source from the content-addressed store, hash-verified

26
27
28def applyReps(rrMap, applicationMap):
29 totalAmount = RRTypes(shield=0, armor=0, hull=0, capacitor=0)
30 for key, repAmount in rrMap.items():
31 totalAmount += repAmount * applicationMap.get(key, 0)
32 # We do not want to include energy transfers into final value
33 totalReps = totalAmount.shield + totalAmount.armor + totalAmount.hull
34 return totalReps
35
36
37# Y mixins

Callers 3

_calculatePointMethod · 0.85
getRangeMethod · 0.85
getPointMethod · 0.85

Calls 3

RRTypesClass · 0.90
itemsMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected