Skip to content

feat: unify pint registry with cellpycore (#450)#481

Merged
jepegit merged 1 commit into
masterfrom
450-units-phase1
Jul 13, 2026
Merged

feat: unify pint registry with cellpycore (#450)#481
jepegit merged 1 commit into
masterfrom
450-units-phase1

Conversation

@jepegit

@jepegit jepegit commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Summary

  • Re-export CellpyUnits from cellpycore.units in internal_settings.py (single unit spec).
  • Remove cellpy-local pint registry from data_structures.py; re-export Q from cellpycore.
  • Rename cellreader.py's data_structures as core alias to ds to avoid collision with self.core (cellpycore seam).
  • Flip registry interop test to hard pass; add single-registry assertion.

Test plan

  • pytest -m essential tests/test_unit_handling_stage0.py tests/test_core_settings_parity.py
  • Full essential suite (pytest -m essential --ignore=tests/test_plotutils_summary_plot.py) — 81 passed

Closes #450.

Made with Cursor

Re-export CellpyUnits and Q from cellpycore, remove the duplicate registry
in data_structures, and rename the cellreader data_structures alias to ds
so it no longer collides with the cellpycore seam. Registry interop test
now hard-passes.

Closes #450.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cursor
cursor Bot requested review from asbjorul and msudars July 13, 2026 08:44

@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.

Did not approve: Cursor Bugbot did not run on this PR, so there is no automated review signal for the units/cellpycore integration changes. Requesting human review.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver

@jepegit
jepegit merged commit cd28d17 into master Jul 13, 2026
4 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.

Stage 1.5: Units Phase 1 — one CellpyUnits, one pint registry, rename the core alias

1 participant