Skip to content

fix(batch): AUTO prefer cellpy, NEWEST, force_recalc, skip redundant save - #826

Merged
jepegit merged 1 commit into
masterfrom
auto-prefer-cellpy-newest-source
Aug 2, 2026
Merged

fix(batch): AUTO prefer cellpy, NEWEST, force_recalc, skip redundant save#826
jepegit merged 1 commit into
masterfrom
auto-prefer-cellpy-newest-source

Conversation

@jepegit

@jepegit jepegit commented Aug 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • SourcePreference.AUTO loads an existing local .cellpy without a remote FID check; new NEWEST keeps the old freshness comparison.
  • force_recalc remakes the step table and summary after load (summary C-rates come from steps).
  • Persist skips rewriting cells already loaded from on-disk .cellpy unless NEWEST / recalc.
  • Journal nom_cap_specifics is forwarded into cellpy.get.

Test plan

  • uv run pytest -m essential
  • Focused batch source/persist/recalc unit tests
  • Optional: reload SIX batch with journal_file=..., force_cellpy=True, force_recalc=True and confirm C-rates ~0.05–1

Closes #825
Refs #822

Made with Cursor

Dogfooding after #822 showed AUTO still statting remote raw files,
force_recalc was a no-op for summary C-rates, and persist rewrote
already-loaded .cellpy files. Prefer existing local cellpy in AUTO,
add NEWEST for freshness checks, remake steps+summary on recalc, and
skip redundant cellpy rewrites.

Closes #825

Co-authored-by: Cursor <cursoragent@cursor.com>
@cursor

cursor Bot commented Aug 2, 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.

@jepegit
jepegit merged commit 09baee7 into master Aug 2, 2026
8 checks passed
@jepegit
jepegit deleted the auto-prefer-cellpy-newest-source branch August 2, 2026 21:35
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.

batch.load: AUTO prefer cellpy, NEWEST freshness, force_recalc, skip redundant save

1 participant