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

Method _getValue

gui/builtinViewColumns/attributeDisplayGraph.py:121–128  ·  view source on GitHub ↗
(self, stuff)

Source from the content-addressed store, hash-verified

119 super().__init__(fittingView, 1389)
120
121 def _getValue(self, stuff):
122 if isinstance(stuff, Fit):
123 speed = stuff.ship.getModifiedItemAttr('maxVelocity')
124 elif isinstance(stuff, TargetProfile):
125 speed = stuff.maxVelocity
126 else:
127 speed = 0
128 return speed, 'm/s'
129
130 def _getFitTooltip(self):
131 return 'Maximum speed'

Callers

nothing calls this directly

Calls 1

getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected