Commit 1372d438 authored by Jan Dinkelbach's avatar Jan Dinkelbach
Browse files

fix bug in branch power calculation of results

parent b6070eb6
......@@ -152,7 +152,7 @@ class Results():
for node in self.nodes:
if branch_index == node.topology_node.index:
branch.power2_pu = -node.voltage_pu * (np.conj(branch.current_pu))
branch.power = branch.power2_pu * branch.topology_branch.base_apparent_power
branch.power2 = branch.power2_pu * branch.topology_branch.base_apparent_power
def get_node(self, index=None, uuid=None):
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment