Skip to content

Add non_fuel_startup_cost default in data loading#105

Merged
blnicho merged 1 commit into
IDAES:mainfrom
ylu283:pr/fix-nonfuel-startcost
Jun 8, 2026
Merged

Add non_fuel_startup_cost default in data loading#105
blnicho merged 1 commit into
IDAES:mainfrom
ylu283:pr/fix-nonfuel-startcost

Conversation

@ylu283

@ylu283 ylu283 commented May 28, 2026

Copy link
Copy Markdown
Contributor

Generators that lack non_fuel_startup_cost in input data cause a KeyError when components.py initializes startupCost. This adds a setdefault fallback of 0 in load_default_data_settings, consistent with how other generator fields are defaulted in the same block.

Generators that lack non_fuel_startup_cost in input data cause a
KeyError when components.py initializes startupCost. Uses setdefault
to preserve existing values while providing a fallback of 0.
@jkskolf jkskolf added the Priority:High High Priority Issue or PR label Jun 8, 2026
@blnicho blnicho merged commit 15dcd9d into IDAES:main Jun 8, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority:High High Priority Issue or PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants