Skip to content

Validate required Excel sheets before import - #59

Open
utsinboots wants to merge 1 commit into
OSeMOSYS:masterfrom
utsinboots:fix/validate-required-excel-sheets
Open

Validate required Excel sheets before import#59
utsinboots wants to merge 1 commit into
OSeMOSYS:masterfrom
utsinboots:fix/validate-required-excel-sheets

Conversation

@utsinboots

@utsinboots utsinboots commented Aug 14, 2026

Copy link
Copy Markdown

Summary

Ports required Excel worksheet validation previously merged in MUIOGO.
Importing a template with a missing required worksheet could raise a raw KeyError when the code accessed that sheet. This change validates all required worksheets first and returns a clear error listing any missing sheets.

Question?
This change includes TECHGROUP in the required-sheet list, although the existing code treats it as optional and creates a default when it is absent. Should TECHGROUP be required in MUIO, given that older templates without it would be rejected?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant