-
Notifications
You must be signed in to change notification settings - Fork 64
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
PyZDDE giving different results than Zemax #93
Comments
Hi @lakodarmstadt, First of all, apologies for the delayed response. Could you please give somewhat more insight in the issue. For instance, are you using settingfiles, and with what settings? Also, what is the difference between the optical setups? Kind regards, Luc |
I've encountered similar problems. |
Hi @Luochenghuang, which version of zemax are you using? I have little experience with this function, but I can think of several problems. One of the problems is that Zemax is dropping the ZDDE support, so this might be broken. As investigation, we could try the following:
If you have time, could you check out option 1, this would be very beneficial. Kind regards, Luc |
Hi,
I know the title might sound a bit weird but I have trouble with a python script using pyZDDE giving (only sometimes!) different results for PhysicalOpticsPropagation than Zemax itself. I am not even sure if this is a pyZDDE problem, but maybe someone has encountered something similar already and can help.
So the situation is the following: I have two similar optical setups (Two different zmx-files) in Zemax and I want to find the focus. To do this I have one python script where I specify the zmx-file and use pyZDDE to plot the spot in the image plane for different distances of the image plane from the last surface. Everthing works fine with this script: I get nice 2D-plots, can calculate the spot size and find the focus for both optical systems. However, when I want to reproduce the focal spot in Zemax itself, for one zmx-file (one of the optical systems) the spot is the same, for the other one it is completely different and the image plane has to be shifted approximately 50um to see the focal spot.
I have tried different things like to restart zemax and python, saving or not saving before changing between the two cases but the result is always the same.
The text was updated successfully, but these errors were encountered: