File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2398,7 +2398,7 @@ end
23982398function _add_delta_readings (pf_sol, math, math_meas)
23992399
24002400 for (l, load) in math[" load" ]
2401- if load[" configuration" ] == DELTA
2401+ if string ( load[" configuration" ]) == " DELTA"
24022402 pf_sol[" load" ][l][" ptot" ] = [sum (real (value) for (key, value) in pf_sol[" load" ][l][" power" ])]
24032403 pf_sol[" load" ][l][" qtot" ] = [sum (imag (value) for (key, value) in pf_sol[" load" ][l][" power" ])]
24042404
@@ -3192,8 +3192,8 @@ function reduce_network_intermediate_buses!(data::Dict)
31923192 end
31933193
31943194 # --- IMPEDANCE MERGE ---
3195- br1[" br_r" ] = br1[" br_r" ][idx1, idx1] .+ br2[" br_r" ][idx2, idx2]
3196- br1[" br_x" ] = br1[" br_x" ][idx1, idx1] .+ br2[" br_x" ][idx2, idx2]
3195+ br1[" br_r" ] = br1[" br_r" ][idx1, idx1] .+ br2[" br_r" ][idx2, idx2] # TODO : if transformer impedance -- make sure to update the v_base and per_unit
3196+ br1[" br_x" ] = br1[" br_x" ][idx1, idx1] .+ br2[" br_x" ][idx2, idx2] # TODO : if transformer impedance -- make sure to update the v_base and per_unit
31973197
31983198 # --- CONNECTION & RATINGS UPDATE ---
31993199 br1[" f_connections" ] = common
You can’t perform that action at this time.
0 commit comments