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

Method Do

gui/fitCommands/calc/module/localSwap.py:18–21  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

16 self.position2 = position2
17
18 def Do(self):
19 pyfalog.debug('Doing swapping between {} and {} for fit {}'.format(self.position1, self.position2, self.fitID))
20 self.__swap(self.fitID, self.position1, self.position2)
21 return True
22
23 def Undo(self):
24 self.__swap(self.fitID, self.position2, self.position1)

Callers

nothing calls this directly

Calls 1

__swapMethod · 0.95

Tested by

no test coverage detected