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

Method getMiningDPS

eos/saveddata/module.py:424–431  ·  view source on GitHub ↗
(self, ignoreState=False)

Source from the content-addressed store, hash-verified

422 return self.__miningYield
423
424 def getMiningDPS(self, ignoreState=False):
425 if self.isEmpty:
426 return 0
427 if not ignoreState and self.state < FittingModuleState.ACTIVE:
428 return 0
429 if self.__miningDrain is None:
430 self.__miningYield, self.__miningDrain = self.__calculateMining()
431 return self.__miningDrain
432
433 def __calculateMining(self):
434 yield_ = self.getModifiedItemAttr("miningAmount")

Callers

nothing calls this directly

Calls 1

__calculateMiningMethod · 0.95

Tested by

no test coverage detected