code: def _compile_seriesflow(self):
          
          string = '"""\n'
          for device, pflow, series in zip(self.devices, self.pflow,
                                           self.series):
              if pflow and series:
                  string += 'system.' + device + '.seriesflow(system.dae)\n'
          string += '\n'
          string += '"""'
          self.seriesflow = compile(eval(string), '', 'exec')
docs: Post power flow computation of series device flow