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

Method getText

gui/builtinViewColumns/dampScanRes.py:41–51  ·  view source on GitHub ↗
(self, stuff)

Source from the content-addressed store, hash-verified

39 self.mask = wx.LIST_MASK_IMAGE
40
41 def getText(self, stuff):
42 if isinstance(stuff, BaseWrapper):
43 stuff = stuff.item
44 mult = 1
45 if isinstance(stuff, Fit):
46 mult = floatUnerr(stuff.getDampMultScanRes())
47 if mult == 1:
48 text = ''
49 else:
50 text = '{}%'.format(formatAmount((mult - 1) * 100, 3, 0, 0, forceSign=True))
51 return text
52
53 def getImageId(self, stuff):
54 return -1

Callers

nothing calls this directly

Calls 3

floatUnerrFunction · 0.90
formatAmountFunction · 0.90
getDampMultScanResMethod · 0.80

Tested by

no test coverage detected