Skip to content

feat: add degradation scenario comparison API - #3

Open
Cyrus-chip wants to merge 1 commit into
chenyi6758-source:mainfrom
Cyrus-chip:feat/degradation-comparison
Open

Cyrus-chip wants to merge 1 commit into
chenyi6758-source:mainfrom
Cyrus-chip:feat/degradation-comparison

Conversation

@Cyrus-chip

Copy link
Copy Markdown

Summary

  • add compare_degradation_scenarios() as a standard nameplate-vs-degradation-aware comparison API
  • keep PV/load profiles, dispatch rules, efficiencies, horizon, and SOC settings identical between scenarios
  • disable only cycle and calendar aging for the nameplate-constant baseline
  • export the helper from the top-level package
  • add regression coverage and a README example

Why

The core value of pvfade is making the economic and operational impact of battery aging visible. Users should not have to manually clone BatterySpec or wire two lifetime simulations together to produce a controlled baseline comparison.

Validation

  • uv run --python 3.11 --extra test pytest -q — 44 passed
  • uv run --python 3.11 python comparison smoke check — both scenarios returned the requested horizon and the constant baseline stayed at 100% retention
  • python3 -m compileall -q src tests examples
  • git diff --check

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