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

Method __limitToRange

graphs/data/base/graph.py:258–263  ·  view source on GitHub ↗
(val, limitRange)

Source from the content-addressed store, hash-verified

256
257 @staticmethod
258 def __limitToRange(val, limitRange):
259 if val is None:
260 return None
261 val = max(val, min(limitRange))
262 val = min(val, max(limitRange))
263 return val
264
265 _getters = {}
266

Callers 2

_limitMainMethod · 0.95
_limitMiscMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected