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

Method _getDataPoint

graphs/data/fitRemoteReps/cache.py:210–218  ·  view source on GitHub ↗
(self, src, ancReload, time, dataFunc)

Source from the content-addressed store, hash-verified

208 return maxTime <= cacheMaxTime
209
210 def _getDataPoint(self, src, ancReload, time, dataFunc):
211 data = dataFunc(src=src, ancReload=ancReload)
212 timesBefore = [t for t in data if floatUnerr(t) <= floatUnerr(time)]
213 try:
214 time = max(timesBefore)
215 except ValueError:
216 return {}
217 else:
218 return data[time]

Callers 2

getRpsDataPointMethod · 0.95
getRepAmountDataPointMethod · 0.95

Calls 1

floatUnerrFunction · 0.90

Tested by

no test coverage detected