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

Method _getPatterns

gui/builtinContextMenus/shared/patterns.py:15–24  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

13class DamagePatternMixin:
14
15 def _getPatterns(self):
16 sDP = DmgPatternSvc.getInstance()
17 builtinPatterns = sDP.getBuiltinDamagePatternList()
18 userPatterns = sorted(sDP.getUserDamagePatternList(), key=lambda p: smartSort(p.fullName))
19 # Order here is important: patterns with duplicate names from the latter will overwrite
20 # patterns from the former
21 patterns = sorted(
22 chain(builtinPatterns, userPatterns),
23 key=lambda p: p.fullName not in ["Uniform", "Selected Ammo"])
24 return patterns
25
26 def _getItems(self, patterns):
27 items = (OrderedDict(), OrderedDict())

Callers 2

getTextMethod · 0.80
displayMethod · 0.80

Calls 4

smartSortFunction · 0.90
getInstanceMethod · 0.45

Tested by

no test coverage detected