PyPSA / pypsa-usa

PyPSA-USA: An Open-Source Energy System Optimization Model for the United States
https://pypsa-usa.readthedocs.io
MIT License
52 stars 20 forks source link

Updates dynamic pricing in `add_electricity` #260

Closed trevorb1 closed 5 months ago

trevorb1 commented 5 months ago

Closes #235 #232

Changes proposed in this Pull Request

In this PR I update how dynamic fuel pricing is extracted and applied. Specifically:

Checklist

trevorb1 commented 5 months ago

A couple notes on the implementation:

trevorb1 commented 5 months ago

@ktehranchi, I tagged you as a reviewer, but I dont think a formal review is really required. Just since you did the original implementation of dynamic prices, wanted to give you a chance to give thoughts if you had any before merging.

Functionality remains the same, but (I think) this implementation allows us to slot in new dynamic fuel pricing much easier

trevorb1 commented 5 months ago

Im gonna go ahead and merge this so I can continue with PR #249. If you have any concerns, please feel free to revert @ktehranchi! :)