Skip to content

Commit

Permalink
remove name from main obj
Browse files Browse the repository at this point in the history
Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>
  • Loading branch information
nitbharambe committed Jun 26, 2024
1 parent 140e0b3 commit 54275aa
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 36 deletions.
6 changes: 0 additions & 6 deletions src/power_grid_model_io/config/excel/vision_en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ grid:
transformer:
id:
auto_id:
name: transformer
key: Number
from_node:
auto_id:
Expand Down Expand Up @@ -231,7 +230,6 @@ grid:
key: Number
regulated_object:
auto_id:
name: transformer
key:
Number: Number
status: 1
Expand All @@ -251,7 +249,6 @@ grid:
transformer:
id:
auto_id:
name: transformer
key: Number
from_node:
auto_id:
Expand Down Expand Up @@ -328,7 +325,6 @@ grid:
key: Number
regulated_object:
auto_id:
name: transformer
key:
Number: Number
status: 1
Expand Down Expand Up @@ -752,7 +748,6 @@ grid:
three_winding_transformer:
id:
auto_id:
name: three_winding_transformer
key: Number
node_1:
auto_id:
Expand Down Expand Up @@ -861,7 +856,6 @@ grid:
key: Number
regulated_object:
auto_id:
name: three_winding_transformer
key:
Number: Number
status: 1
Expand Down
6 changes: 0 additions & 6 deletions src/power_grid_model_io/config/excel/vision_en_9_7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ grid:
transformer:
id:
auto_id:
name: transformer
key: Number
from_node:
auto_id:
Expand Down Expand Up @@ -232,7 +231,6 @@ grid:
key: Number
regulated_object:
auto_id:
name: transformer
key:
Number: Number
status: State
Expand All @@ -252,7 +250,6 @@ grid:
transformer:
id:
auto_id:
name: transformer
key: Number
from_node:
auto_id:
Expand Down Expand Up @@ -329,7 +326,6 @@ grid:
key: Number
regulated_object:
auto_id:
name: transformer
key:
Number: Number
status: At
Expand Down Expand Up @@ -753,7 +749,6 @@ grid:
three_winding_transformer:
id:
auto_id:
name: three_winding_transformer
key: Number
node_1:
auto_id:
Expand Down Expand Up @@ -862,7 +857,6 @@ grid:
key: Number
regulated_object:
auto_id:
name: three_winding_transformer
key:
Number: Number
status: 1
Expand Down
6 changes: 0 additions & 6 deletions src/power_grid_model_io/config/excel/vision_nl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ grid:
transformer:
id:
auto_id:
name: transformer
key: Nummer
from_node:
auto_id:
Expand Down Expand Up @@ -228,7 +227,6 @@ grid:
key: Nummer
regulated_object:
auto_id:
name: transformer
key:
Nummer: Nummer
status: 1
Expand All @@ -248,7 +246,6 @@ grid:
transformer:
id:
auto_id:
name: transformer
key: Nummer
from_node:
auto_id:
Expand Down Expand Up @@ -322,7 +319,6 @@ grid:
key: Nummer
regulated_object:
auto_id:
name: transformer
key:
Nummer: Nummer
status: 1
Expand Down Expand Up @@ -743,7 +739,6 @@ grid:
three_winding_transformer:
id:
auto_id:
name: three_winding_transformer
key: Nummer
node_1:
auto_id:
Expand Down Expand Up @@ -849,7 +844,6 @@ grid:
key: Nummer
regulated_object:
auto_id:
name: three_winding_transformer
key:
Nummer: Nummer
status: 1
Expand Down
6 changes: 3 additions & 3 deletions tests/data/vision/pgm_input_data_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
],
"transformer":
[
{"id": 9, "from_node": 1, "to_node": 2, "id_reference": {"table": "Transformers", "name": "transformer", "key": {"Number": 1}}, "Name": "transformer1"},
{"id": 11, "from_node": 1, "to_node": 3, "id_reference": {"table": "Special transformers", "name": "transformer", "key": {"Number": 1}}, "Name": "special_trans1"},
{"id": 9, "from_node": 1, "to_node": 2, "id_reference": {"table": "Transformers", "key": {"Number": 1}}, "Name": "transformer1"},
{"id": 11, "from_node": 1, "to_node": 3, "id_reference": {"table": "Special transformers", "key": {"Number": 1}}, "Name": "special_trans1"},
{"id": 13, "from_node": 2, "to_node": 15, "id_reference": {"table": "Transformer loads", "name": "transformer", "key": {"Node.Number": 3, "Subnumber": 4}}, "Name": "transformer_load_2"},
{"id": 14, "from_node": 2, "to_node": 16, "id_reference": {"table": "Transformer loads", "name": "transformer", "key": {"Node.Number": 3, "Subnumber": 2}}, "Name": "transformer_load_1"}
],
Expand Down Expand Up @@ -58,6 +58,6 @@
],
"three_winding_transformer":
[
{"id": 29, "node_1": 1, "node_2": 2, "node_3": 4, "id_reference": {"table": "Three winding transformers", "name": "three_winding_transformer", "key": {"Number": 1}}}
{"id": 29, "node_1": 1, "node_2": 2, "node_3": 4, "id_reference": {"table": "Three winding transformers", "key": {"Number": 1}}}
]
}
6 changes: 3 additions & 3 deletions tests/data/vision/pgm_input_data_nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
],
"transformer":
[
{"id": 9, "from_node": 1, "to_node": 2, "id_reference": {"table": "Transformatoren", "name": "transformer", "key": {"Nummer": 1}}, "Naam": "transformer1"},
{"id": 11, "from_node": 1, "to_node": 3, "id_reference": {"table": "Speciale transformatoren", "name": "transformer", "key": {"Nummer": 1}}, "Naam": "special_trans1"},
{"id": 9, "from_node": 1, "to_node": 2, "id_reference": {"table": "Transformatoren", "key": {"Nummer": 1}}, "Naam": "transformer1"},
{"id": 11, "from_node": 1, "to_node": 3, "id_reference": {"table": "Speciale transformatoren", "key": {"Nummer": 1}}, "Naam": "special_trans1"},
{"id": 13, "from_node": 2, "to_node": 15, "id_reference": {"table": "Transformatorbelastingen", "name": "transformer", "key": {"Knooppunt.Nummer": 3, "Subnummer": 4}}, "Naam": "transformer_load_2"},
{"id": 14, "from_node": 2, "to_node": 16, "id_reference": {"table": "Transformatorbelastingen", "name": "transformer", "key": {"Knooppunt.Nummer": 3, "Subnummer": 2}}, "Naam": "transformer_load_1"}
],
Expand Down Expand Up @@ -58,6 +58,6 @@
],
"three_winding_transformer":
[
{"id": 29, "node_1": 1, "node_2": 2, "node_3": 4, "id_reference": {"table": "Driewikkelingstransformatoren", "name": "three_winding_transformer", "key": {"Nummer": 1}}}
{"id": 29, "node_1": 1, "node_2": 2, "node_3": 4, "id_reference": {"table": "Driewikkelingstransformatoren", "key": {"Nummer": 1}}}
]
}
6 changes: 0 additions & 6 deletions tests/data/vision/vision_9_5_en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ grid:
transformer:
id:
auto_id:
name: transformer
key: Number
from_node:
auto_id:
Expand Down Expand Up @@ -231,7 +230,6 @@ grid:
key: Number
regulated_object:
auto_id:
name: transformer
key:
Number: Number
status: 1
Expand All @@ -251,7 +249,6 @@ grid:
transformer:
id:
auto_id:
name: transformer
key: Number
from_node:
auto_id:
Expand Down Expand Up @@ -328,7 +325,6 @@ grid:
key: Number
regulated_object:
auto_id:
name: transformer
key:
Number: Number
status: 1
Expand Down Expand Up @@ -738,7 +734,6 @@ grid:
three_winding_transformer:
id:
auto_id:
name: three_winding_transformer
key: Number
node_1:
auto_id:
Expand Down Expand Up @@ -847,7 +842,6 @@ grid:
key: Number
regulated_object:
auto_id:
name: three_winding_transformer
key:
Number: Number
status: 1
Expand Down
6 changes: 0 additions & 6 deletions tests/data/vision/vision_9_5_nl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ grid:
transformer:
id:
auto_id:
name: transformer
key: Nummer
from_node:
auto_id:
Expand Down Expand Up @@ -228,7 +227,6 @@ grid:
key: Nummer
regulated_object:
auto_id:
name: transformer
key:
Nummer: Nummer
status: 1
Expand All @@ -248,7 +246,6 @@ grid:
transformer:
id:
auto_id:
name: transformer
key: Nummer
from_node:
auto_id:
Expand Down Expand Up @@ -322,7 +319,6 @@ grid:
key: Nummer
regulated_object:
auto_id:
name: transformer
key:
Nummer: Nummer
status: 1
Expand Down Expand Up @@ -729,7 +725,6 @@ grid:
three_winding_transformer:
id:
auto_id:
name: three_winding_transformer
key: Nummer
node_1:
auto_id:
Expand Down Expand Up @@ -835,7 +830,6 @@ grid:
key: Nummer
regulated_object:
auto_id:
name: three_winding_transformer
key:
Nummer: Nummer
status: 1
Expand Down

0 comments on commit 54275aa

Please sign in to comment.