Skip to content

Mirror and lens in an imperfect system #165

Answered by mjhoptics
justintorgerson asked this question in Q&A
Discussion options

You must be logged in to vote

assume you have the following:

layout_plt = plt.figure(FigureClass=InteractiveLayout, opt_model=opm, is_dark=False).plot()

The boundary defining rays for each field point are saved in a list of RayBundles called ray_shapes.

number_of_fields = len(layout_plt.ray_shapes)

Each RayBundle has a dict called rayset. It contains 5 rays, labeled '00', '+Y', '-Y', '+X', '-X'.

ray_pkg = layout_plt.ray_shapes[0].rayset['+Y']
list_ray(ray_pkg)

If you use ray fans, they're saved for each field in a list of RayFanBundles called rayfan_shapes.

number_of_fields = len(layout_plt.rayfan_shapes)

Each RayFanBundle has a fan of rays in the fan called ray_fan. This is a RayFan and the list of rays is the fi…

Replies: 7 comments 31 replies

Comment options

You must be logged in to vote
17 replies
@mjhoptics
Comment options

@justintorgerson
Comment options

@justintorgerson
Comment options

@justintorgerson
Comment options

@mjhoptics
Comment options

Comment options

You must be logged in to vote
2 replies
@justintorgerson
Comment options

@mjhoptics
Comment options

Comment options

You must be logged in to vote
3 replies
@justintorgerson
Comment options

@justintorgerson
Comment options

@mjhoptics
Comment options

Comment options

You must be logged in to vote
8 replies
@mjhoptics
Comment options

@justintorgerson
Comment options

@mjhoptics
Comment options

@justintorgerson
Comment options

@mjhoptics
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mjhoptics
Comment options

Answer selected by justintorgerson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants