def _compile_seriesflow(self):
        """Post power flow computation of series device flow"""
        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')
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' )
Post power flow computation of series device flow