Skip to content

Use IOM.ComponentPairKey - #328

Open
acostarelli wants to merge 2 commits into
mainfrom
ac/component-pair-key
Open

acostarelli wants to merge 2 commits into
mainfrom
ac/component-pair-key

Conversation

@acostarelli

Copy link
Copy Markdown
Member

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Critical reserve-group duplication and hydro lookup issues remain, along with stale IOM feature-branch pins.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 2 High severity

Open (2)
What changed in this PR

This pull request migrates reserve-variable storage and access to IOM.ComponentPairKey, separating containers by device and service type.

Changes:

  • Updates reserve construction, grouping, constraints, costs, and device integrations.
  • Revises reserve-related tests and output lookups.
  • Updates IOM dependency pins.
File Summary
test/​test_services_constructor.jl Updates reserve container assertions.
test/​test_model_decision.jl Updates reserve output discovery.
test/​test_device_reserve_offers.jl Updates reserve award reads and assertions.
test/​Project.toml Should pin IOM to main instead of the stale feature branch.
src/​static_injector_models/​hydro_generation.jl Uses pair-keyed hydro reserve variables; remaining old lookup callers must be updated.
src/​services_models/​services_constructor.jl Creates pair-keyed reserve containers.
src/​services_models/​reserves.jl Updates reserve constraints and costs.
src/​services_models/​reserve_offers.jl Handles pair-keyed offer pricing.
src/​services_models/​reserve_group.jl Aggregates pair-keyed awards; canonicalize scanned keys to prevent duplicate aggregation.
src/​hybrid_system_models/​hybrid_systems.jl Updates hybrid reserve access.
src/​energy_storage_models/​storage_models.jl Updates storage reserve access.
src/​core/​reserve_traits.jl Updates offline reserve award lookup.
src/​common_models/​add_to_expression.jl Updates reserve expression wiring.
Project.toml Should pin IOM to main instead of the stale feature branch.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@@ -216,11 +219,27 @@ function _group_member_variables(
rtype = typeof(r)
Comment on lines +2808 to +2809
variable =
get_variable(container, U, IOM.ComponentPairKey{V, typeof(service)})

This branch has not been deployed

No deployments
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