PyPSA / pypsa-usa

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

Fixes leap years #349

Closed trevorb1 closed 1 month ago

trevorb1 commented 1 month ago

Closes #347, Closes #225

Changes proposed in this Pull Request

Pulls in the PyPSA-Eur function for creating snapshots, which handles leap years (via the new function get_snapshots(...)). Current implementation is that leap year day (feb 29) will be dropped. Associated function calls throughout the workflow have been updated to always use this function. Creation of mulit-index snapshots has been updated to use this function and renamed to get_multiindex_snapshots(...)

Checklist