Skip to content

Add non_fuel_startup_cost default in data loading#105

Open
ylu283 wants to merge 1 commit into
IDAES:mainfrom
ylu283:pr/fix-nonfuel-startcost
Open

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

Conversation

@ylu283
Copy link
Copy Markdown

@ylu283 ylu283 commented May 28, 2026

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.
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