Skip to content

Commit c16addb

Browse files
committed
restore test for asym_load
Signed-off-by: furqan463 <[email protected]>
1 parent 1629de8 commit c16addb

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/power_grid_model_io/converters/pandapower_converter.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1580,8 +1580,6 @@ def _pp_load_elements_output(self, element, symmetric):
15801580
elif element == "motor":
15811581
load_id_names = ["motor_load"]
15821582

1583-
assert res_table not in self.pp_output_data
1584-
15851583
if (
15861584
ComponentType.sym_load not in self.pgm_output_data
15871585
or self.pgm_output_data[ComponentType.sym_load].size == 0

tests/unit/converters/test_pandapower_converter_output.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ def test_create_output_data_3ph():
8383
(PandaPowerConverter._pp_sgens_output, "sym_gen"),
8484
(PandaPowerConverter._pp_trafos_output, "transformer"),
8585
(PandaPowerConverter._pp_trafos3w_output, "three_winding_transformer"),
86+
(PandaPowerConverter._pp_asym_loads_output, "asym_load"),
8687
(PandaPowerConverter._pp_asym_gens_output, "asym_gen"),
8788
(PandaPowerConverter._pp_switches_output, "link"),
8889
(PandaPowerConverter._pp_buses_output_3ph, "node"),

0 commit comments

Comments
 (0)