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

Method getDefaultParams

graphs/gui/lists.py:341–347  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

339 lightnessUseMap[key] += 1
340
341 def getDefaultParams():
342 leastUses = min(lightnessUseMap.values(), default=0)
343 for lineStyleID in STYLES:
344 for lightnessID in LIGHTNESSES:
345 if leastUses == lightnessUseMap.get((lightnessID, lineStyleID), 0):
346 return lightnessID, lineStyleID
347 return None, None
348
349 lightnessID, lineStyleID = getDefaultParams()
350 self._wrappers.append(TargetWrapper(item=item, lightnessID=lightnessID, lineStyleID=lineStyleID))

Callers

nothing calls this directly

Calls 2

valuesMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected