Skip to content

Commit

Permalink
use int indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Jun 3, 2024
1 parent f5c9af4 commit 84b4bff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parsers/pm_io/data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1127,8 +1127,8 @@ function correct_thermal_limits!(data::Dict{String, <:Any})
y = LinearAlgebra.pinv(z)
y_mag = abs.(y[c, c])

fr_vmax = data["bus"][string(branch["f_bus"])]["vmax"][c]
to_vmax = data["bus"][string(branch["t_bus"])]["vmax"][c]
fr_vmax = data["bus"][branch["f_bus"]]["vmax"][c]
to_vmax = data["bus"][branch["t_bus"]]["vmax"][c]
m_vmax = max(fr_vmax, to_vmax)

c_max = sqrt(fr_vmax^2 + to_vmax^2 - 2 * fr_vmax * to_vmax * cos(theta_max))
Expand Down

0 comments on commit 84b4bff

Please sign in to comment.