Skip to content

feat: remove n._investment_periods and add snapshots level properties#1113

Merged
lkstrp merged 11 commits intoPyPSA:masterfrom
lkstrp:indexers
Dec 19, 2024
Merged

feat: remove n._investment_periods and add snapshots level properties#1113
lkstrp merged 11 commits intoPyPSA:masterfrom
lkstrp:indexers

Conversation

@lkstrp
Copy link
Copy Markdown
Member

@lkstrp lkstrp commented Dec 16, 2024

Changes proposed in this Pull Request

  • Clarify issue in Minor improvement of snapshots handling #1091
  • Remove n._investment_periods, since its data is included in n.snapshots and therefore not needed.
  • New network attributes n.timesteps, n.periods (alias for n.investment_periods) and n.has_periods.

Checklist

  • Code changes are sufficiently documented; i.e. new functions contain docstrings and further explanations may be given in doc.
  • Unit tests for new features were added (if applicable).
  • A note for the release notes doc/release_notes.rst of the upcoming release is included.
  • I consent to the release of this PR's code under the MIT license.

@lkstrp lkstrp requested a review from FabianHofmann December 17, 2024 11:03
@lkstrp lkstrp enabled auto-merge (squash) December 19, 2024 07:54
@lkstrp lkstrp merged commit 4fc081a into PyPSA:master Dec 19, 2024
@lkstrp lkstrp deleted the indexers branch April 9, 2025 08:21
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.

2 participants