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

Method _normalizeMain

graphs/data/base/graph.py:213–220  ·  view source on GitHub ↗
(self, mainInput, src, tgt)

Source from the content-addressed store, hash-verified

211 _normalizers = {}
212
213 def _normalizeMain(self, mainInput, src, tgt):
214 key = (mainInput.handle, mainInput.unit)
215 if key in self._normalizers:
216 normalizer = self._normalizers[key]
217 mainParamRange = (mainInput.handle, tuple(normalizer(v, src, tgt) for v in mainInput.value))
218 else:
219 mainParamRange = (mainInput.handle, mainInput.value)
220 return mainParamRange
221
222 def _normalizeMisc(self, miscInputs, src, tgt):
223 miscParams = {}

Callers 1

_calcPlotPointsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected