Skip to content

Replace system._stepper with public system.bind() API#50

Merged
jc-macdonald merged 3 commits intomainfrom
feat/42-49-bind-api
Apr 9, 2026
Merged

Replace system._stepper with public system.bind() API#50
jc-macdonald merged 3 commits intomainfrom
feat/42-49-bind-api

Conversation

@jc-macdonald
Copy link
Copy Markdown
Collaborator

Replaces the last private attribute access (system._stepper) in the engine provider with the public system.bind() API introduced in flepimop2 PR #182.

Changes

  • flepimop2 dep updated — Pinned commit 43143a6@main (post-PR #182). Fixed IdentifierString import which moved from flepimop2.configuration to flepimop2.typing.
  • system._steppersystem.bind() — One-line change on line 162, removing the # noqa: SLF001 suppression.
  • Test helper updated_GoodSystem now implements _bind_impl() using functools.partial, matching flepimop2's reference pattern.
  • Bind-path verification testtest_engine_uses_bind_not_stepper instruments system.bind() to confirm the engine calls the public API.

Related

Update flepimop2 from pinned commit 43143a6 to @main, picking up the
SystemABC.bind() API from PR #182. Fix IdentifierString import which
moved from flepimop2.configuration to flepimop2.typing.
Replace private attribute access (system._stepper) with the public
SystemABC.bind() API introduced in flepimop2 PR #182. Update the
_GoodSystem test helper to implement _bind_impl() using the same
functools.partial pattern as flepimop2's reference implementation.

Closes #42, closes #49
Add test_engine_uses_bind_not_stepper which instruments system.bind()
to verify the engine calls the public API rather than accessing the
private _stepper attribute directly.
@jc-macdonald jc-macdonald self-assigned this Apr 9, 2026
@jc-macdonald jc-macdonald added provider flepimop2 provider/connector package refactor Code reorganization without behavior change testing Test infrastructure and accuracy benchmarks labels Apr 9, 2026
@jc-macdonald jc-macdonald added this to the Provider Integration milestone Apr 9, 2026
Copy link
Copy Markdown
Member

@pearsonca pearsonca left a comment

Choose a reason for hiding this comment

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

see other PR response; LGTM as minimal approach

@jc-macdonald jc-macdonald merged commit 8d5673f into main Apr 9, 2026
5 checks passed
@jc-macdonald jc-macdonald deleted the feat/42-49-bind-api branch April 9, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

provider flepimop2 provider/connector package refactor Code reorganization without behavior change testing Test infrastructure and accuracy benchmarks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace system._stepper access with public bind API Replace getattr introspection with system.option() for mixing kernels

3 participants