Skip to content

refactor: drop pyref; add refloxide.python.model and tmm - #4

Merged
HarlanHeilman merged 1 commit into
mainfrom
fix/remove-pyref-import-requirement
Jul 24, 2026
Merged

refactor: drop pyref; add refloxide.python.model and tmm#4
HarlanHeilman merged 1 commit into
mainfrom
fix/remove-pyref-import-requirement

Conversation

@HarlanHeilman

Copy link
Copy Markdown
Member

Summary

  • Remove the refloxide.integrations.pyref surface (patch_pyref and related) so installing/comparing against external pyref is no longer required.
  • Move the pure-Python TMM to refloxide.python.tmm and add refloxide.python.model as the opt-in pure-Python modeling API; keep Rust TMM as the default package export.
  • Retarget comparison REPLs to import refloxide.python.model as py with py_* naming (Rust refloxide.model vs python.model), and stop installing/patching pyref in scripts/develop.sh.

Test plan

  • uv run pytest
  • MPLBACKEND=Agg uv run python examples/model_objective_repl.py
  • MPLBACKEND=Agg uv run python examples/uni_tensor_znpc_repl.py
  • MPLBACKEND=Agg uv run python examples/mixed_uni_tensor_znpc_repl.py
  • Confirm import refloxide does not pull pyref / integrations
  • Confirm import refloxide.python.model as py and from refloxide.python.tmm import uniaxial_reflectivity work

Move the pure-Python TMM under refloxide.python, expose modeling via
python.model, remove integrations.pyref, and retarget examples to py_*
naming against Rust model vs python.model.
@HarlanHeilman
HarlanHeilman merged commit d5f3233 into main Jul 24, 2026
9 checks passed
@HarlanHeilman
HarlanHeilman deleted the fix/remove-pyref-import-requirement branch July 24, 2026 20:26
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.

1 participant