Skip to content

Commit bfcb72d

Browse files
committed
Fix placing 'index' column in line and trafo
Signed-off-by: furqan463 <[email protected]>
1 parent 18b8368 commit bfcb72d

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
@@ -2430,7 +2430,7 @@ def get_switch_states(self, pp_table: str) -> pd.DataFrame:
24302430
else:
24312431
raise KeyError(f"Can't get switch states for {pp_table}")
24322432

2433-
component = self.pp_input_data[pp_table]
2433+
component = self.pp_input_data[pp_table].copy()
24342434
component["index"] = component.index
24352435

24362436
# Select the appropriate switches and columns

0 commit comments

Comments
 (0)