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

Method getRemoteReps

eos/saveddata/drone.py:218–231  ·  view source on GitHub ↗
(self, ignoreState=False)

Source from the content-addressed store, hash-verified

216 return self.__baseRRAmount
217
218 def getRemoteReps(self, ignoreState=False):
219 rrDuringCycle = RRTypes(0, 0, 0, 0)
220 cycleParams = self.getCycleParameters()
221 if cycleParams is None:
222 return rrDuringCycle
223 repAmountParams = self.getRepAmountParameters(ignoreState=ignoreState)
224 avgCycleTime = cycleParams.averageTime
225 if len(repAmountParams) == 0 or avgCycleTime == 0:
226 return rrDuringCycle
227 for rrAmount in repAmountParams.values():
228 rrDuringCycle += rrAmount
229 rrFactor = 1 / (avgCycleTime / 1000)
230 rrDuringCycle *= rrFactor
231 return rrDuringCycle
232
233 def getCycleParameters(self, reloadOverride=None):
234 cycleTime = self.cycleTime

Callers

nothing calls this directly

Calls 4

getCycleParametersMethod · 0.95
RRTypesClass · 0.90
valuesMethod · 0.80

Tested by

no test coverage detected