(self, charge)
| 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): |
no test coverage detected