Skip to content

D2: surface per-test metadata as Batch.tests (#711) - #740

Merged
jepegit merged 1 commit into
masterfrom
711-batch-tests-surface
Jul 27, 2026
Merged

D2: surface per-test metadata as Batch.tests (#711)#740
jepegit merged 1 commit into
masterfrom
711-batch-tests-surface

Conversation

@jepegit

@jepegit jepegit commented Jul 27, 2026

Copy link
Copy Markdown
Owner

Epic D, arc D2 (#711) — test-level summaries in batch reports

Surfaces the per-test TestMeta records a cell carries in Data.tests (#506) at the batch level as a tidy long-format frame.

  • aggregate.combine_tests(cells, journal) — one row per (cell, test_id) with the native scalar TestMeta fields (cell_name, cycle_mode, test_family/type, source_type/uri, channel, creator, start/loaded datetimes, voltage limits, comment) plus cell/group/sub_group keys. raw_file_names flattened to a string; nested/object fields skipped. Empty frame when no cell exposes metadata.
  • Batch.tests property returning it; combine_tests exported from cellpy.batch.

Note on scope

The issue referenced core build_tests_summary (ROADMAP) — that function isn't in cellpycore yet (it exists only as a docstring example). But the per-test metadata already lives on Data.tests, so this is delivered app-side with no core dependency, satisfying the acceptance (per-test summaries exposed, tidy long-format, native columns). A future core build_tests_summary could enrich each row with per-test summary stats on top of this metadata surface.

Verified on a real cell (1 test → 1 row) and a multi-test fake (2 test_ids → 2 rows).

Closes #711

Expose the per-test TestMeta records a cell carries in Data.tests (#506) at
the batch level as a tidy long-format frame:

- aggregate.combine_tests(cells, journal): one row per (cell, test_id) with the
  native scalar TestMeta fields (cell_name, cycle_mode, test_family/type,
  source_type/uri, channel, creator, start/loaded datetimes, voltage limits,
  comment) plus cell/group/sub_group keys; raw_file_names flattened to a
  string; nested/object fields skipped. Empty frame when no cell has metadata.
- Batch.tests property returning it; combine_tests exported from cellpy.batch.

Delivered app-side without waiting on the core build_tests_summary roadmap
function (which isn't in cellpycore yet) -- the per-test metadata already
exists on Data.tests. Verified on a real cell and with a multi-test fake.

Closes #711

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@cursor

cursor Bot commented Jul 27, 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 enabled auto-merge (squash) July 27, 2026 08:29
@jepegit
jepegit merged commit edcb402 into master Jul 27, 2026
5 of 6 checks passed
@jepegit
jepegit deleted the 711-batch-tests-surface branch July 27, 2026 08:31
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.

D2: F6 — test-level summaries in batch reports

1 participant