Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hasFieldStop() crashes under certain circumstances #481

Open
dccote opened this issue Sep 3, 2024 · 1 comment
Open

hasFieldStop() crashes under certain circumstances #481

dccote opened this issue Sep 3, 2024 · 1 comment
Assignees

Comments

@dccote
Copy link
Contributor

dccote commented Sep 3, 2024

With code similar to this, it crashes in the raytracing_app I am developing. I notice there is an aperture but it is after the image and cannot be crossed at all(?)

from raytracing import *

path = ImagingPath()
path.append(Space(d=100.0))
path.append(Lens(f=100.0, label='L1'))
path.append(Space(d=200.0))
path.append(Lens(f=50.0,  label='L2'))
path.append(Space(d=100.0))
path.append(Aperture(diameter=30.0, label='Aperture'))

stop =  path.fieldStop() # This crashes, sometimes? In the raytracing app, it does, but not here.
print(stop)

rays = UniformRays(yMax=5, thetaMax=0.1, M=5, N=5)
path.display(rays=rays, onlyPrincipalAndAxialRays=False, removeBlocked=True)

@dccote dccote self-assigned this Sep 3, 2024
Copy link

github-actions bot commented Nov 2, 2024

Stale issue message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant