Skip to content

Decommission in-repo legacy summary engine (#385)#503

Merged
jepegit merged 1 commit into
masterfrom
385-decommission-legacy-summary-engine
Jul 16, 2026
Merged

Decommission in-repo legacy summary engine (#385)#503
jepegit merged 1 commit into
masterfrom
385-decommission-legacy-summary-engine

Conversation

@jepegit

@jepegit jepegit commented Jul 16, 2026

Copy link
Copy Markdown
Owner

Closes #385 — the last open item of the v2 Phase 0 gate (epic #402).

What

Removes the in-repo legacy summary engine, leaving cellpy-core as the only
compute path:

  • _make_summar_legacy, _generate_absolute_summary_columns, _ir_to_summary,
    _end_voltage_to_summary (all verified legacy-exclusive — no live callers)
  • the make_summary(old=True) branch and the old kwarg itself

Net: −547 lines. Breaking on the v2 line only: old=True is gone; 1.x users
keep it on the v1.x branch.

The blocker is resolved

tests/test_arbin_sql_h5.py was the sole old=True consumer, kept because the
core summary "pruned duplicates differently" (TODO from the cellpycore==0.1.5
era). Re-tested on cellpycore==0.2.1:

raw rows: 47
core summary rows: 1        (legacy: 1)
value diffs on common columns: NONE
raw rows after core summary: 34   (core dedups 13 duplicate raw rows)

The summary is value-identical on every common column. The raw-row pruning is a
side effect of the core path; the test now asserts it explicitly (47 → 34) so it
is a recorded contract rather than a surprise.

Verification

  • tests/test_arbin_sql_h5.py: 1 passed (core path)
  • uv run pytest -m essential: 93 passed
  • Full uv run pytest: 592 passed, 62 skipped, 14 xfailed, 0 failures

🤖 Generated with Claude Code

Remove the duplicate compute path kept behind make_summary(old=True):
_make_summar_legacy, _generate_absolute_summary_columns, _ir_to_summary,
_end_voltage_to_summary (all legacy-exclusive), and the old kwarg + branch in
make_summary. The cellpy-core engine is now the only summary path.

The blocker noted on the issue is resolved: with cellpycore 0.2.1 the core
summary on the arbin_sql_h5 file is value-identical to the legacy engine on
every common column (1 summary row from 47 raw rows). The remaining difference
is that the core path prunes 13 duplicate raw rows (47 -> 34) as a side
effect; the test now records that as an explicit contract.

Breaking (v2 line): the old kwarg is gone. 1.x users keep it on the v1.x
branch.

Closes #385.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@jepegit jepegit added the v2 cellpy v2.0 epic work - PRs should target the master branch label Jul 16, 2026
@cursor

cursor Bot commented Jul 16, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Approved. Cursor Bugbot was not present on this PR (signal skipped per policy); essential CI passed. No reviewers assigned.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver

@jepegit
jepegit merged commit 88997bc into master Jul 16, 2026
4 checks passed
@jepegit
jepegit deleted the 385-decommission-legacy-summary-engine branch July 16, 2026 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v2 cellpy v2.0 epic work - PRs should target the master branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Decommission cellpy's in-repo legacy step/summary engine now that it delegates to cellpy-core

1 participant