Skip to content

Commit c1772e3

Browse files
InObject.Name
Signed-off-by: Jerry Guo <[email protected]>
1 parent d0a7f0a commit c1772e3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/power_grid_model_io/data_stores/excel_file_store.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,11 @@ def sheet_loader():
9292
columns = list(preview.columns)
9393
dtype = {}
9494
for col in columns:
95-
if col == "Name" or (isinstance(col, tuple) and col[0] == "Name"):
95+
if (
96+
col == "Name"
97+
or col == "InObject.Name"
98+
or (isinstance(col, tuple) and (col[0] == "Name" or col[0] == "InObject.Name"))
99+
):
96100
dtype[col] = str
97101
sheet_data = xls_file.parse(xls_sheet_name, header=self._header_rows, dtype=dtype)
98102
sheet_data = self._remove_unnamed_column_placeholders(data=sheet_data)

0 commit comments

Comments
 (0)