You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[x ] I have read the documentation and tried to find an answer there.
[x ] I am using the latest version of Optiland (if not, please update and retry).
[x ] I have tried to reproduce or debug the issue myself before opening this.
[x ] I have included all necessary context, such as version info, error messages, or minimal reproducible examples.
Bug Report
Describe the bug
ImageSimulationEngine seems to have a hard time running IterativeRayAimer().
I am attaching an example, where the system, spot diagram and so on, can be plotted without issue, but ImageSimulationEngine fails.
Here is what happens in IterativeRayAimer.aim_rays():
Error is about ex,ey = 2 from initial guess.
Error (ex, ey) increases on the first iteration (ey double).
Error (ex, ey) becomes nan. nan on the second iteration.
To Reproduce
Steps to reproduce the behavior:
Set breakpoint on line 183 of iterative.py
Run attached script
Expected behavior
Ray aiming should not fail as the sytem is correctly setup.
Checklist
Bug Report
Describe the bug
ImageSimulationEngine seems to have a hard time running IterativeRayAimer().
I am attaching an example, where the system, spot diagram and so on, can be plotted without issue, but ImageSimulationEngine fails.
Here is what happens in IterativeRayAimer.aim_rays():
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Ray aiming should not fail as the sytem is correctly setup.
Screenshots

Environment
Additional context
ray_aiming_bug.json
ray_aiming_bug.py