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

Assembling zSetField return tuple in Opticstudio 17.5 broken #82

Open
MaximilianHoffmann opened this issue Mar 1, 2018 · 1 comment

Comments

@MaximilianHoffmann
Copy link

MaximilianHoffmann commented Mar 1, 2018

https://github.com/indranilsinharoy/PyZDDE/blob/45dff7042b074574ef0ba5b6e8ee4155689f02bf/pyzdde/zdde.py#L5091-L5096

Those lines seem to be broken or they do not match the Zemax Response, fd._make and the length of rs don't match, for n=0 and n>0, this results in a error about the input argument number.

Setting the fields works.

@MaximilianHoffmann MaximilianHoffmann changed the title in Opticstudio 17.5 Assembling zSetField return tuple in Opticstudio 17.5 broken Mar 1, 2018
@blueshuttle
Copy link

You can still use zSetSystemProperty(self, code, value1, value2=0) instead, where code = 102, 103 for field x and y

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

No branches or pull requests

2 participants