Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Ray aiming Issues #654

Copy link
Copy link

Description

@8bit-Dude
Issue body actions

Checklist

  • [x ] I have searched the existing issues and discussions for a similar question or problem.
  • [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:

  1. Set breakpoint on line 183 of iterative.py
  2. Run attached script

Expected behavior
Ray aiming should not fail as the sytem is correctly setup.

Screenshots
Image

Environment

  • Optiland Version: Master
  • Python Version: 3.12.12
  • OS: Windows
  • Additional Info:

Additional context

ray_aiming_bug.json

ray_aiming_bug.py

Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

Morty Proxy This is a proxified and sanitized view of the page, visit original site.