Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #328 +/- ##
==========================================
+ Coverage 85.43% 85.45% +0.02%
==========================================
Files 20 20
Lines 5594 5598 +4
==========================================
+ Hits 4779 4784 +5
+ Misses 815 814 -1
🚀 New features to boost your workflow:
|
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved critical x/r mappings and moderate tail-membership handling block approval.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Updates translation rules for revised Sienna component properties and adds configurable plant-unit naming.
Changes:
- Adds
use_plant_unit_namesconfiguration and generator naming behavior. - Updates component fixtures and tests.
- Aligns ReEDS and PLEXOS↔Sienna mappings with revised fields.
File summaries
| File | Summary |
|---|---|
packages/r2x-sienna-to-plexos/tests/test_translation_rule_application.py |
Updates reservoir construction tests. |
packages/r2x-sienna-to-plexos/tests/test_getters.py |
Updates component fixtures for revised fields. |
packages/r2x-sienna-to-plexos/tests/test_getters_system.py |
Updates turbine construction tests. |
packages/r2x-sienna-to-plexos/tests/test_getters_membership.py |
Updates reservoir and turbine membership fixtures. |
packages/r2x-sienna-to-plexos/tests/test_getters_helpers.py |
Updates reservoir test data. |
packages/r2x-sienna-to-plexos/tests/test_getters_generators.py |
Adds configurable naming behavior tests. |
packages/r2x-sienna-to-plexos/src/r2x_sienna_to_plexos/plugin_config.py |
Adds naming configuration. |
packages/r2x-sienna-to-plexos/src/r2x_sienna_to_plexos/getters.py |
Applies configurable generator names. |
packages/r2x-reeds-to-sienna/tests/test_translation_rule_application.py |
Validates category-based reservoir sides. |
packages/r2x-reeds-to-sienna/src/r2x_reeds_to_sienna/config/rules.json |
Moderate finding (1 vote): Update membership handling for the new category/upstream-turbine representation or retain compatible metadata. |
packages/r2x-plexos-to-sienna/src/r2x_plexos_to_sienna/config/rules.json |
Critical finding (2 votes): Add direct x/r mappings or getters so source values are preserved. |
Review details
Suppressed comments (1)
packages/r2x-reeds-to-sienna/src/r2x_reeds_to_sienna/config/rules.json:426
- This removes the side marker that the Sienna-to-PLEXOS membership pass still uses for tail links. The emitted tail reservoir is linked through
upstream_turbines, butensure_tail_storage_generator_membershiponly checksdownstream_turbinesand otherwise inspectsturbine.reservoirs[].reservoir_location; with this rule noreservoir_locationis present, so the explicit tail association is skipped and the later name-based synthesis can attach the wrong storage when names differ. Update that membership logic to use the newcategory/upstream_turbinesrepresentation (or retain compatible metadata).
"level_data_type": "ENERGY"
- Files reviewed: 11/11 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
pesap
reviewed
Sep 14, 2026
Comment on lines
+28
to
+31
| use_plant_unit_names: bool = Field( | ||
| default=True, | ||
| description="Use plant and unit names from generator metadata instead of Sienna names.", | ||
| ) |
Collaborator
Contributor
There was a problem hiding this comment.
Yes, please can we discuss further.
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.