Skip to content

Commit

Permalink
Bug fix calculation of x and r of new lines
Browse files Browse the repository at this point in the history
  • Loading branch information
birgits committed Oct 21, 2021
1 parent 2cad604 commit 65419ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edisgo/network/topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -1303,8 +1303,8 @@ def _get_line_data():
line_data.U_n == self.buses_df.loc[bus0, "v_nom"]
]
).iloc[0, :]
x = calculate_line_resistance(line_data.L_per_km, length)
r = calculate_line_reactance(line_data.R_per_km, length)
x = calculate_line_reactance(line_data.L_per_km, length)
r = calculate_line_resistance(line_data.R_per_km, length)
s_nom = calculate_apparent_power(line_data.U_n, line_data.I_max_th)

# generate line name and check uniqueness
Expand Down

0 comments on commit 65419ce

Please sign in to comment.