def flow_amp_rate(self):
        args = self.get_busnumbers(True)
        s = self._flow(*args)
        if s:
            s_rate = self.get_rate()
            irate_1 = MonsterPssPy.brnmsc(*args, string='PCTRTA')
            irate_2 = MonsterPssPy.brnmsc(args[1],
                                          args[0],
                                          args[2],
                                          string='PCTRTA')

            s_rate *= max(irate_1, irate_2) / 100.0
            if s_rate < abs(s.real):
                return complex(s.real, 0)
            else:
                return complex(s.real, math.sqrt(s_rate**2 - s.real**2))
        else:
            return s
 def get_real_power(self):
     args = self.get_busnumbers(True) + ['P']
     return MonsterPssPy.brnmsc(*args)