Skip to content

feat(metadata): add CellMeta.uuid cell-level join key (#151) - #152

Merged
jepegit merged 1 commit into
mainfrom
151-cellmeta-uuid
Sep 26, 2026
Merged

jepegit merged 1 commit into
mainfrom
151-cellmeta-uuid

Conversation

@jepegit

@jepegit jepegit commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

Closes #151

  • CellMeta.uuid: Optional[str] = None — stable id for the physical cell, independent of the test run (TestMeta.uuid). Minted by the consumer (cellpy's external metadata sources, Pluggable external metadata sources (query an API for cell/test metadata) jepegit/cellpy#784); never required.
  • legacy.meta_mapping.CORE_ONLY_CELL += "uuid" (totality tests hold; cellpy's apply_test_meta_to_legacy skips it).
  • Spec: core-only CellMeta fields table in docs/specifications/harmonized-raw.md.
  • Tests: JSON round-trip, core-only mapping. uv run pytest 289 passed; ruff check/format clean.
  • HISTORY [Unreleased] entry.

Follow-up (separate): PyPI release + cellpy re-pin (Epic S), after which the BatBase adapter can set cell.uuid.

Made with Cursor

Optional, consumer-minted id for the physical cell, distinct from
TestMeta.uuid (the run). Core-only in the legacy mapping so
apply_test_meta_to_legacy skips it; spec table and tests updated.

Closes #151

Co-authored-by: Cursor <cursoragent@cursor.com>
@jepegit
jepegit merged commit eb23943 into main Sep 26, 2026
2 checks passed
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.

CellMeta.uuid: cell-level join key for external metadata sources

1 participant