Skip to content

Conversation

@HarrisonKramer
Copy link
Owner

Bug fix: unit discrepancy in phase interaction model

This bug fix simply corrects the units of the wavelength used to calculate the k-vector. By default, Optiland uses mm for lens units and microns for wavelength (internally, although other units can be used).

@HarrisonKramer HarrisonKramer linked an issue Jan 20, 2026 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Jan 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #438   +/-   ##
=======================================
  Coverage   92.26%   92.26%           
=======================================
  Files         295      295           
  Lines       16996    16996           
=======================================
  Hits        15682    15682           
  Misses       1314     1314           
Files with missing lines Coverage Δ
optiland/interactions/phase_interaction_model.py 93.40% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@HarrisonKramer HarrisonKramer merged commit 68b88f3 into master Jan 20, 2026
11 checks passed
@HarrisonKramer HarrisonKramer deleted the fix/wavelength_units_phase_surfaces branch January 20, 2026 19:34
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.

Unexpected lens behavior when using unit="mm" in add_wavelength

2 participants