code: def _update_extended(self, system):
          
          if self.system.pflow.solved is False:
              logger.warning(
                  'Cannot update extended summary. Power flow not solved.')
              return
  
          Sloss = sum(system.Line.S1 + system.Line.S2)
          self.extended.update({
              'Ptot':
              sum(system.PV.pmax) + sum(system.SW.pmax),  # + sum(system.SW.pmax)
              'Pon':
              sum(mul(system.PV.u, system.PV.pmax)),
              'Pg':
              sum(system.Bus.Pg),
              'Qtot_min':
              sum(system.PV.qmin) + sum(system.SW.qmin),
              'Qtot_max':
              sum(system.PV.qmax) + sum(system.SW.qmax),
              'Qon_min':
              sum(mul(system.PV.u, system.PV.qmin)),
              'Qon_max':
              sum(mul(system.PV.u, system.PV.qmax)),
              'Qg':
              round(sum(system.Bus.Qg), 5),
              'Pl':
              round(sum(system.PQ.p), 5),
              'Ql':
              round(sum(system.PQ.q), 5),
              'Psh':
              0.0,
              'Qsh':
              round(sum(system.PQ.q) - sum(system.Bus.Ql), 5),
              'Ploss':
              round(Sloss.real, 5),
              'Qloss':
              round(Sloss.imag, 5),
              'Pch':
              round(sum(system.Line.Pchg1 + system.Line.Pchg2), 5),
              'Qch':
              round(sum(system.Line.Qchg1 + system.Line.Qchg2), 5),
          })
docs: Update the extended data