Skip to content

Commit a4500e7

Browse files
zhen0427mgovers
andauthored
Update src/power_grid_model_io/converters/pandapower_converter.py
Co-authored-by: Martijn Govers <[email protected]> Signed-off-by: Zhen Wang <[email protected]>
1 parent b82c414 commit a4500e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/power_grid_model_io/converters/pandapower_converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1536,7 +1536,7 @@ def _pp_asym_gens_output(self):
15361536
# TODO: create unit tests for the function
15371537
assert "res_asymmetric_sgen" not in self.pp_output_data
15381538

1539-
if "asym_gen" not in self.pgm_output_data or self.pgm_output_data[ComponentType.asym_gen].size == 0:
1539+
if ComponentType.asym_gen not in self.pgm_output_data or self.pgm_output_data[ComponentType.asym_gen].size == 0:
15401540
return
15411541

15421542
pgm_output_asym_gens = self.pgm_output_data[ComponentType.asym_gen]

0 commit comments

Comments
 (0)