Skip to content

Commit

Permalink
Update list of attributes.
Browse files Browse the repository at this point in the history
Signed-off-by: Bertrand Rix <[email protected]>
  • Loading branch information
obrix committed Dec 17, 2024
1 parent 0e5aacd commit dfd840d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/print_network.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ network = Powsybl.Network.create_ieee9()
@test network.case_date 1.240704e9

lines = Powsybl.Network.get_lines(network)
@test names(lines) == ["id", "name", "r", "x", "g1", "b1", "g2",
"b2", "p1", "q1", "i1", "p2", "q2", "i2", "voltage_level1_id",
"voltage_level2_id", "bus1_id", "bus2_id"]
@test names(lines) == ["id", "name", "r", "x", "g1", "b1", "g2", "b2", "p1", "q1", "i1", "p2", "q2",
"i2", "voltage_level1_id", "voltage_level2_id", "bus1_id", "bus2_id", "connected1", "connected2"]

@test lines[:, "id"] == ["L7-8-0", "L9-8-0", "L7-5-0", "L9-6-0", "L5-4-0", "L6-4-0"]
@test lines[:, "bus1_id"] == ["VL2_1", "VL3_1", "VL2_1", "VL3_1", "VL5_0", "VL6_0"]

0 comments on commit dfd840d

Please sign in to comment.