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

Method getChargesForActiveFit

gui/builtinMarketBrowser/itemView.py:135–150  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

133 self.filterItemStore()
134
135 def getChargesForActiveFit(self):
136 fitId = self.mainFrame.getActiveFit()
137
138 # no active fit => no charges
139 if fitId is None:
140 return set()
141
142 fit = self.sFit.getFit(fitId)
143
144 # use a set so we only add one entry for each charge
145 items = set()
146 for mod in fit.modules:
147 charges = self.sAmmo.getModuleFlatAmmo(mod)
148 for charge in charges:
149 items.add(charge)
150 return items
151
152 def fitChanged(self, event):
153 # skip the event so the other handlers also get called

Callers 2

selectionMadeMethod · 0.95
fitChangedMethod · 0.95

Calls 3

getFitMethod · 0.80
getModuleFlatAmmoMethod · 0.80
getActiveFitMethod · 0.45

Tested by

no test coverage detected