Skip to content

Fix curvature solve on plane surfaces#660

Merged
HarrisonKramer merged 1 commit into
optiland:masterfrom
ahfoysal:fix-curvature-solve-plane
Jul 6, 2026
Merged

Fix curvature solve on plane surfaces#660
HarrisonKramer merged 1 commit into
optiland:masterfrom
ahfoysal:fix-curvature-solve-plane

Conversation

@ahfoysal

@ahfoysal ahfoysal commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Fixes #659.

Curvature solves now set radius through the optic updater, so planar surfaces become standard surfaces when a finite curvature is solved.

Tested:

  • python -m py_compile optiland/solves/curvature.py tests/test_solves.py

@ahfoysal
ahfoysal force-pushed the fix-curvature-solve-plane branch from d269148 to 8e3308d Compare July 5, 2026 19:16
@codecov

codecov Bot commented Jul 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@HarrisonKramer

Copy link
Copy Markdown
Collaborator

Hi @ahfoysal,

Thank you very much for fixing this! Merging now.

We'd love to see more contributions from you. For future work, please leave a comment on the issue you'd like to tackle so we can avoid duplicated effort.

Regards,
Kramer

@HarrisonKramer
HarrisonKramer merged commit 04bfc18 into optiland:master Jul 6, 2026
11 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.

Curvature solve does not convert a planar surface into a "standard" surface

2 participants