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

Method _xIterLinear

graphs/data/base/getter.py:78–88  ·  view source on GitHub ↗
(self, xRange)

Source from the content-addressed store, hash-verified

76 return self._calculatePoint(x=x, miscParams=miscParams, src=src, tgt=tgt, commonData=commonData)
77
78 def _xIterLinear(self, xRange):
79 xLow = min(xRange)
80 xHigh = max(xRange)
81 # Resolution defines amount of ranges between points here,
82 # not amount of points
83 step = (xHigh - xLow) / self._baseResolution
84 if step == 0 or math.isnan(step):
85 yield xLow
86 else:
87 for i in range(self._baseResolution + 1):
88 yield xLow + step * i
89
90 def _getCommonData(self, miscParams, src, tgt):
91 return {}

Callers 1

getRangeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected