Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There's an issue when the CO2 cap is set to 2, but the file "generator_data.csv" does not have storage. #541

Closed
fc4uk opened this issue Sep 5, 2023 · 2 comments · Fixed by #569
Assignees

Comments

@fc4uk
Copy link
Collaborator

fc4uk commented Sep 5, 2023

There is a bug related to the CO2 cap being set to 2 when there's no storage in the system. This issue can be reproduced in the smallnewengland/onezone directory by removing the "battery" row from generator_data.csv. Below is the error message I encountered:

ERROR: LoadError: KeyError: key :eELOSSByZone not found

@cfe316
Copy link
Collaborator

cfe316 commented Oct 26, 2023

This could be solved using a line near the top of generate_model.jl

create_empty_expression!(EP, :eELOSSByZone, Z)

and then changing the line that constructs the entries for this in storage_all.jl (and vre_stor.jl) to use add_to_expression!.

@cfe316
Copy link
Collaborator

cfe316 commented Oct 27, 2023

This is now fixed on develop.

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 a pull request may close this issue.

3 participants