code: def max_delta_volume(self):
          
          vols = [v.vol_charge for v in self.voltage_pairs]
          vols.extend([v.vol_discharge for v in self.voltage_pairs])
          return max(vols) / min(vols) - 1
docs: Maximum volume change along insertion