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

Method SimplifyValue

eos/gamedata.py:719–726  ·  view source on GitHub ↗

Takes the internal representation value and convert it into the display value

(self, value)

Source from the content-addressed store, hash-verified

717 return value, self.displayName
718
719 def SimplifyValue(self, value):
720 """Takes the internal representation value and convert it into the display value"""
721
722 override = self.translations.get(self.name)
723 if override is not None:
724 return override[0](value)
725
726 return value
727
728 def ComplicateValue(self, value):
729 """Takes the display value and turns it back into the internal representation of it"""

Callers 1

_simplifyValueMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected