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

Function calc_outerscore

scripts/effectUsedBy.py:110–117  ·  view source on GitHub ↗

Outer score calculation formula

(innerscore_dict, pereffect_totalaffected, weight)

Source from the content-addressed store, hash-verified

108 return innerscore
109
110def calc_outerscore(innerscore_dict, pereffect_totalaffected, weight):
111 """Outer score calculation formula"""
112 # Return just max of the inner scores, including weight factor
113 if float(len(innerscore_dict)):
114 outerscore = innerscore_dict[max(innerscore_dict, key=lambda a:
115 innerscore_dict.get(a))] * weight
116 return outerscore
117 else: return 0.0
118
119def validate_string(s):
120 try:

Callers 1

effectUsedBy.pyFile · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected