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

Method getNumCharges

eos/saveddata/module.py:200–210  ·  view source on GitHub ↗
(self, charge)

Source from the content-addressed store, hash-verified

198 return self.getNumCharges(self.charge)
199
200 def getNumCharges(self, charge):
201 if charge is None:
202 charges = 0
203 else:
204 chargeVolume = charge.attributes['volume'].value
205 containerCapacity = self.item.attributes['capacity'].value
206 if chargeVolume is None or containerCapacity is None:
207 charges = 0
208 else:
209 charges = int(floatUnerr(containerCapacity / chargeVolume))
210 return charges
211
212 @property
213 def numShots(self):

Callers 2

numChargesMethod · 0.95
DoMethod · 0.80

Calls 1

floatUnerrFunction · 0.90

Tested by

no test coverage detected