xzos / PyZDDE

Zemax/ OpticStudio Extension using Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Assembling zSetField return tuple in Opticstudio 17.5 broken

MaximilianHoffmann opened this issue · comments

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.

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