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

Function renderMutantAttrs

service/port/muta.py:37–44  ·  view source on GitHub ↗
(mutant)

Source from the content-addressed store, hash-verified

35
36
37def renderMutantAttrs(mutant):
38 mutatedAttrs = {}
39 for attrID, mutator in mutant.mutators.items():
40 attrName = getAttributeInfo(attrID).name
41 mutatedAttrs[attrName] = mutator.value
42 return ', '.join(
43 '{} {}'.format(a, floatUnerr(mutatedAttrs[a]))
44 for a in sorted(mutatedAttrs))
45
46
47def parseMutant(lines):

Callers 2

addMutantAttributesFunction · 0.90
renderMutantFunction · 0.85

Calls 3

getAttributeInfoFunction · 0.90
floatUnerrFunction · 0.90
itemsMethod · 0.80

Tested by

no test coverage detected