Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename field interchanges -> area_interchanges #55

Merged
merged 1 commit into from
Nov 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2794,7 +2794,7 @@ struct Network
"Transformer records."
transformers::Transformers
"Area Interchange records."
interchanges::AreaInterchanges
area_interchanges::AreaInterchanges
"Two-terminal DC Line records."
two_terminal_dc::TwoTerminalDCLines
"Voltage Source Converter DC Line records."
Expand Down
32 changes: 16 additions & 16 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ using Test
$(sprint(show, mime, net.generators; context))
$(sprint(show, mime, net.branches; context))
$(sprint(show, mime, net.transformers; context))
$(sprint(show, mime, net.interchanges; context))
$(sprint(show, mime, net.area_interchanges; context))
$(sprint(show, mime, net.two_terminal_dc; context))
$(sprint(show, mime, net.vsc_dc; context))
$(sprint(show, mime, net.switched_shunts; context))
Expand Down Expand Up @@ -160,12 +160,12 @@ using Test
@test size(transformers) == (2, fieldcount(Transformers))
@test length(transformers) == 2

interchanges = net1.interchanges
@test interchanges.i == [113]
@test interchanges.isw == [456]
@test interchanges.pdes == [2121.7211]
@test interchanges.ptol == [6.0]
@test interchanges.arname == ["ABC "]
area_interchanges = net1.area_interchanges
@test area_interchanges.i == [113]
@test area_interchanges.isw == [456]
@test area_interchanges.pdes == [2121.7211]
@test area_interchanges.ptol == [6.0]
@test area_interchanges.arname == ["ABC "]

two_terminal_dc = net1.two_terminal_dc
@test two_terminal_dc.i == [11] # 1st entry of 1st row
Expand Down Expand Up @@ -273,12 +273,12 @@ using Test
@test size(transformers) == (3, ncols_expected)
@test length(transformers) == 3

interchanges = net2.interchanges
@test interchanges.i == [615, 762]
@test interchanges.isw == [615001, 1234]
@test interchanges.pdes == [32.677, -224.384]
@test interchanges.ptol == [5.0, 5.0]
@test interchanges.arname == ["RE ", "OTP "]
area_interchanges = net2.area_interchanges
@test area_interchanges.i == [615, 762]
@test area_interchanges.isw == [615001, 1234]
@test area_interchanges.pdes == [32.677, -224.384]
@test area_interchanges.ptol == [5.0, 5.0]
@test area_interchanges.arname == ["RE ", "OTP "]

two_terminal_dc = net2.two_terminal_dc
@test isempty(two_terminal_dc)
Expand Down Expand Up @@ -395,9 +395,9 @@ using Test
@test size(transformers) == (3, fieldcount(Transformers))
@test length(transformers) == 3

interchanges = net33.interchanges
@test interchanges.i == [1]
@test interchanges.arname == ["SouthCarolin"]
area_interchanges = net33.area_interchanges
@test area_interchanges.i == [1]
@test area_interchanges.arname == ["SouthCarolin"]

two_terminal_dc = net33.two_terminal_dc
@test two_terminal_dc.name == ["DC Line 1 ", "DC Line 1 "] # first col
Expand Down