Bug 365 emis cap - #368
Conversation
…on caps Previously the non-banking cap divided by (1 - pol.offset) unconditionally, and the banking (cumulative) cap ignored offsets entirely. Now both formulations divide by (1 - offset_adjust), which only loosens the cap by pol.offset when offset_under_cap=false (offsets sit outside the cap). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Price escalation was anchored to the first model year (yr_idx - 1) instead of the first year with a cap target, so step_prices would already be escalated by the time a cap starting mid-horizon kicked in. Anchor to first_target_idx instead so the configured step_prices land unescalated in the cap's actual first year. Also fixes a related indexing bug when building the price_resp_alws table: it wrote prices[s][i] (position within the filtered target-year list) instead of prices[s][yr_idx] (the actual model-year index), which only matched when target years were the first N consecutive model years. Includes docstring update and whitespace cleanup. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #368 +/- ##
==========================================
+ Coverage 88.29% 88.61% +0.32%
==========================================
Files 54 56 +2
Lines 6142 6552 +410
==========================================
+ Hits 5423 5806 +383
- Misses 719 746 +27 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Benchmark resultJudge resultBenchmark Report for /home/runner/work/E4ST.jl/E4ST.jlJob Properties
ResultsA ratio greater than
Benchmark Group ListHere's a list of all the benchmark groups executed by this job:
Julia versioninfoTargetBaselineTarget resultBenchmark Report for /home/runner/work/E4ST.jl/E4ST.jlJob Properties
ResultsBelow is a table of this job's results, obtained by running the benchmarks.
Benchmark Group ListHere's a list of all the benchmark groups executed by this job:
Julia versioninfoBaseline resultBenchmark Report for /home/runner/work/E4ST.jl/E4ST.jlJob Properties
ResultsBelow is a table of this job's results, obtained by running the benchmarks.
Benchmark Group ListHere's a list of all the benchmark groups executed by this job:
Julia versioninfoRuntime information
|
No description provided.