Skip to content

Improve data-file generation reliability - #54

Open
utsinboots wants to merge 2 commits into
OSeMOSYS:masterfrom
utsinboots:fix/datafile-generation-reliability
Open

Improve data-file generation reliability#54
utsinboots wants to merge 2 commits into
OSeMOSYS:masterfrom
utsinboots:fix/datafile-generation-reliability

Conversation

@utsinboots

@utsinboots utsinboots commented Aug 13, 2026

Copy link
Copy Markdown

Summary

Ports two fixes previously merged in MUIOGO:
-Falls back to the parameter's default value when its configured value is unset, preventing invalid or missing values during data-file generation.
-Creates the case-run directory before writing data.txt, preventing file generation from failing when the directory does not already exist.

Testing
-Confirmed MUIO starts and a model can be loaded.
-Confirmed data-file generation works with these changes.

utsinboots and others added 2 commits August 11, 2026 12:27
Restored backups may skip empty res/<caserunname>/ folders, so writing
the data file failed with a misleading error. Create the folder first.

Fixes #504

(cherry picked from commit ff2e2215da3424ef87ae30163792ca84ed4d59d0)
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.

2 participants