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

Method getDefaultParams

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

Source from the content-addressed store, hash-verified

287 colorUseMap[wrapper.colorID] += 1
288
289 def getDefaultParams():
290 leastUses = min(colorUseMap.values(), default=0)
291 for colorID in BASE_COLORS:
292 if leastUses == colorUseMap.get(colorID, 0):
293 return colorID
294 return None
295
296 colorID = getDefaultParams()
297 self._wrappers.append(SourceWrapper(item=item, colorID=colorID))

Callers

nothing calls this directly

Calls 2

valuesMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected