We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e926849 commit dbce5e0Copy full SHA for dbce5e0
src/power_grid_model_io/data_stores/excel_file_store.py
@@ -78,7 +78,7 @@ def sheet_loader():
78
excel_file = pd.ExcelFile(path)
79
for sheet_name in excel_file.sheet_names:
80
loader = lazy_sheet_loader(excel_file, sheet_name)
81
- if name:
+ if name != "": # If the Excel file is not the main file, prefix the sheet name with the file name
82
sheet_name = f"{name}.{sheet_name}"
83
if sheet_name in data:
84
raise ValueError(f"Duplicate sheet name '{sheet_name}'")
0 commit comments