Skip to content

FieldSpec question #74

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

You must be logged in to vote

Yes, but you have to do it field by field; there isn't a single function call to do it.

My general approach with ray-optics has been to implement general purpose algorithms in the "back-end" but only implement interface functions to handle the most common systems, i.e. rotationally symmetric systems. So the set_from_list() method of FieldSpec is really only accepting y or radial field heights for convenience in the most common situations. If you have an anamorphic or bilaterally symmetric system, then the user needs to add Field objects directly to FieldSpec with the appropriate x, y coordinates set. The documentation doesn't make this clear (which is an understatement) so thank you for a…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dibyendumajumdar
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