fix: resolve reserve association issues and handle code base with recent r2x-reeds and r2x-sienna updates.#274
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #274 +/- ##
==========================================
+ Coverage 84.96% 85.01% +0.05%
==========================================
Files 20 20
Lines 4655 4679 +24
==========================================
+ Hits 3955 3978 +23
- Misses 700 701 +1
🚀 New features to boost your workflow:
|
pesap
reviewed
Jun 16, 2026
pesap
reviewed
Jun 16, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the ReEDS→Sienna translation to correctly handle (1) reserve-type mapping/associations (including NON_SPINNING), (2) hydro-specific attributes (prime mover + reactive limits), and (3) new consuming-technology demand types (electrolyzer/datacenter) in line with recent r2x-reeds and r2x-sienna model changes.
Changes:
- Add explicit NON_SPINNING reserve mapping to
VariableReserveNonSpinningand ensure generators attach the correct reserve services. - Fix hydro translation to always use
PrimeMoversType.HYand provide zeroedreactive_power_limits. - Add translation rules + getters for
ReEDSElectrolyzerDemandandReEDSDataCenterDemandtoInterruptiblePowerLoad, with expanded regression coverage.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/r2x-reeds-to-sienna/src/r2x_reeds_to_sienna/getters.py | Adds new getters for hydro prime mover, reactive limits, generator reserve services, and consuming-technology load power fields. |
| packages/r2x-reeds-to-sienna/src/r2x_reeds_to_sienna/config/rules.json | Updates/extends translation rules for NON_SPINNING reserves, generator services attachment, hydro prime mover/reactive limits, and consuming-technology loads. |
| packages/r2x-reeds-to-sienna/tests/test_translation_rule_application.py | Adds integration/regression tests covering hydro attributes, reserve mapping, reserve-to-generator service attachment, and consuming-technology loads. |
| packages/r2x-reeds-to-sienna/tests/test_rules_loading.py | Adds rule-presence/structure assertions for the new reserve/load/hydro rule updates. |
| packages/r2x-reeds-to-sienna/tests/test_getters.py | Adds direct getter tests for gen services, non-spinning resolution, hydro prime mover, reactive limits, and consuming-technology power getters. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
pesap
approved these changes
Jun 16, 2026
This was referenced Jun 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.