Skip to content

feat: experiment corrections, FreeTensorSLD, and drop pyref - #5

Merged
HarlanHeilman merged 10 commits into
mainfrom
feat/experiment-corrections
Jul 24, 2026
Merged

feat: experiment corrections, FreeTensorSLD, and drop pyref#5
HarlanHeilman merged 10 commits into
mainfrom
feat/experiment-corrections

Conversation

@HarlanHeilman

Copy link
Copy Markdown
Member

Summary

  • Add per-energy ExperimentCorrections (instrument) and wire them through ReflectModel (scale/bkg/theta offsets, shared energy offset/dq/q_offset).
  • Add FreeTensorSLD, batch materialization/tensor_at_many, OpticalConstants per-energy OOC caching, and Objective Nevot-Croce prior plus thread_workers.
  • Drop refloxide.integrations / pyref; relocate pure-Python TMM to refloxide.python.tmm and add comparison / real-data REPL examples.

Test plan

  • uv run pytest tests/test_experiment_corrections.py tests/test_refloxide_model.py tests/test_refloxide_objective.py tests/test_optical_constants_cache.py tests/test_depth_profiles.py
  • Confirm from refloxide.instrument import ExperimentCorrections and ReflectModel field views (scale_s.at(E), etc.) behave as documented
  • Smoke-import: uv run python -c "from refloxide.python.tmm import uniaxial_reflectivity; import refloxide.model"
  • Spot-check a REPL example imports without pyref (examples/dft_model_comparison_repl.py or examples/real_data_repl.py)

@HarlanHeilman
HarlanHeilman merged commit 5973c07 into main Jul 24, 2026
9 checks passed
@HarlanHeilman
HarlanHeilman deleted the feat/experiment-corrections branch July 24, 2026 20:30
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