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

Method __init__

service/fit.py:68–100  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

66 return cls.instance
67
68 def __init__(self):
69 pyfalog.debug("Initialize Fit class")
70 self.pattern = DamagePattern.getInstance().getDamagePattern("Uniform")
71 self.targetProfile = None
72 self.character = saveddata_Character.getAll5()
73 self.booster = False
74 self._loadedFits = WeakSet()
75
76 serviceFittingDefaultOptions = {
77 "useGlobalCharacter": False,
78 "useCharacterImplantsByDefault": True,
79 "useGlobalDamagePattern": False,
80 "defaultCharacter": self.character.ID,
81 "useGlobalForceReload": False,
82 "colorFitBySlot": False,
83 "rackSlots": True,
84 "rackLabels": True,
85 "compactSkills": True,
86 "showTooltip": True,
87 "showMarketShortcuts": False,
88 "enableGaugeAnimation": True,
89 "openFitInNew": False,
90 "priceSystem": "Jita",
91 "priceSource": "fuzzwork market",
92 "showShipBrowserTooltip": True,
93 "marketSearchDelay": 250,
94 "ammoChangeAll": False,
95 "additionsLabels": 1,
96 "expandedMutantNames": False,
97 }
98
99 self.serviceFittingOptions = SettingsProvider.getInstance().getSettings(
100 "pyfaServiceFittingOptions", serviceFittingDefaultOptions)
101
102 @staticmethod
103 def getAllFits():

Callers

nothing calls this directly

Calls 4

getAll5Method · 0.80
getSettingsMethod · 0.80
getDamagePatternMethod · 0.45
getInstanceMethod · 0.45

Tested by

no test coverage detected