Skip to content

Merge main into jd/market_models2 - #167

Closed
rodrigomha wants to merge 8 commits into
jd/market_models2from
rh/market_models_1x
Closed

rodrigomha wants to merge 8 commits into
jd/market_models2from
rh/market_models_1x

Conversation

@rodrigomha

Copy link
Copy Markdown
Contributor

Brings main up to and including #166 into the market-models branch: cost conversions derive their ratio to the system base after InfrastructureSystems 2a2494ec changed convert_cost_coefficient, and the coverage tooling leaves the test environment (Coverage.jl caps HTTP at 1.x, the OpenAPI packages need 2.x). No conflicts. PowerOperationsModels' jd/market_models2 needs this to build on the OpenAPI 1.x line; its follow-up PR pins this branch until it merges.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XgUkJVy9F23R3G5F8XFaLj

jd-lara and others added 8 commits September 9, 2026 09:52
Template types can share objects with the caller's original by reference
after the build-time copy: objects a build mutates that callers then
inspect on the instance they passed in. The default shares nothing. The
network-data sharing that must happen before deepcopy is unchanged, now
under _deepcopy_sharing_network_data.
…nces

Add share_template_references! hook to the template deep copy
InfrastructureSystems#634 renamed the per-unit marker: `IS.DU`/
`IS.DeviceBaseUnit` are now `IS.CU`/`IS.ComponentBaseUnit`, with no shims.

Seven sites, all constructing the marker to parameterize a cost curve in
the value-curve tests, plus the units tuple in the dispatch-profile
script.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LP6eB1zx4eyE3hd7tpvSue
Follow the DeviceBaseUnit -> ComponentBaseUnit rename
InfrastructureSystems 2a2494ec moved the unit-system base arithmetic out of
convert_cost_coefficient, which now takes a bare x-axis ratio, so every cost path failed
on the IS4 head with a MethodError. _system_base_ratio derives the ratio the way IS used
to (SU 1, CU sb/db, NU sb) and the four per-system-unit helpers pass it through; a unit
test pins the three ratios for each helper.
Coverage.jl caps HTTP at 1.x and the OpenAPI.jl 1.x packages need HTTP 2.x, so the test
environment has not resolved since the IS4 pin moved, on CI and locally. CI collects
coverage through julia-processcoverage and never loaded the package; the local lcov
script now runs from scripts/coverage, its own environment.
Derive the cost-coefficient ratio to the system base ourselves
Brings IOM #166: cost conversions derive their ratio to the system base (IS 2a2494ec
changed convert_cost_coefficient), and the coverage tooling leaves the test environment.
@github-actions

Copy link
Copy Markdown
Contributor

Performance Results
Main


This branch


@codecov

codecov Bot commented Sep 14, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.90909% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/utils/component_utils.jl 83.33% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@rodrigomha

Copy link
Copy Markdown
Contributor Author

Superseded: jd/market_models2 is rebased onto main directly.

@rodrigomha rodrigomha closed this Sep 14, 2026
@rodrigomha
rodrigomha deleted the rh/market_models_1x branch September 14, 2026 21:40
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.

3 participants