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

Method _getDataPoint

graphs/data/fitDamageStats/cache/time.py:260–268  ·  view source on GitHub ↗
(self, src, time, dataFunc)

Source from the content-addressed store, hash-verified

258 return maxTime <= cacheMaxTime
259
260 def _getDataPoint(self, src, time, dataFunc):
261 data = dataFunc(src)
262 timesBefore = [t for t in data if floatUnerr(t) <= floatUnerr(time)]
263 try:
264 time = max(timesBefore)
265 except ValueError:
266 return {}
267 else:
268 return data[time]

Callers 3

getDpsDataPointMethod · 0.95
getVolleyDataPointMethod · 0.95
getDmgDataPointMethod · 0.95

Calls 1

floatUnerrFunction · 0.90

Tested by

no test coverage detected