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

Method _isTimeCacheValid

graphs/data/fitRemoteReps/cache.py:203–208  ·  view source on GitHub ↗
(self, src, ancReload, maxTime)

Source from the content-addressed store, hash-verified

201 currentTime += cycleTimeMs / 1000 + inactiveTimeMs / 1000
202
203 def _isTimeCacheValid(self, src, ancReload, maxTime):
204 try:
205 cacheMaxTime = self._data[src.item.ID][ancReload]['maxTime']
206 except KeyError:
207 return False
208 return maxTime <= cacheMaxTime
209
210 def _getDataPoint(self, src, ancReload, time, dataFunc):
211 data = dataFunc(src=src, ancReload=ancReload)

Callers 1

_generateInternalFormMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected