Skip to content

Commit

Permalink
FIX: typo in get switch length
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudocubic committed Sep 18, 2024
1 parent f8325ca commit 3014d49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data_model/transformations/dss2eng.jl
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ function _dss2eng_line!(data_eng::Dict{String,<:Any}, data_dss::OpenDssDataModel
# ENGINEERING model switches are zero-length objects
for k in ["b_fr", "b_to", "g_fr", "g_to", "rs", "xs"]
if haskey(eng_obj, k)
eng_obj[k] .*= get(eng_obj, length, 1.0)
eng_obj[k] .*= get(eng_obj, "length", 1.0)
end
end
delete!(eng_obj, "length")
Expand Down

0 comments on commit 3014d49

Please sign in to comment.