-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
I can't start a session with pyzos 0.0.8 and Opticstudio 16.5 SP4. I am getting the following respose:
import pyzos.zos as zos
osys = zos.OpticalSystem(sync_ui=True) # enable interactivity with a running UI
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-1-f53a44b0a298> in <module>()
1 import pyzos.zos as zos
----> 2 osys = zos.OpticalSystem(sync_ui=True) # enable interactivity with a running UI
3
C:\tools\WinPython-64bit-3.4.4.2\python-3.4.4.amd64\lib\site-packages\pyzos\zos.py in __init__(self, sync_ui, mode)
292
293 ## patch methods from ZOS IOpticalSystem to the wrapped object
--> 294 _replicate_methods(self._iopticalsystem, self)
295
296 # Provide a way to make property calls without the prefix p,
C:\tools\WinPython-64bit-3.4.4.2\python-3.4.4.amd64\lib\site-packages\pyzos\zosutils.py in replicate_methods(srcObj, dstObj)
62 for key, value in get_callable_method_dict(srcObj).items():
63 if key not in overridden_methods:
---> 64 setattr(dstObj, key, zos_wrapper_deco(value))
65
66 def get_properties(zos_obj):
C:\tools\WinPython-64bit-3.4.4.2\python-3.4.4.amd64\lib\site-packages\pyzos\zosutils.py in zos_wrapper_deco(func)
55 def wrapper(*args, **kwargs):
56 return wrapped_zos_object(func(*args, **kwargs))
---> 57 varnames = func.im_func.func_code.co_varnames # alternative is to use inspect.getargspec
58 params = [par for par in varnames if par not in ('self', 'ret')] # removes 'self' and 'ret'
59 wrapper.__doc__ = func.im_func.func_name + '(' + ', '.join(params) + ')'
AttributeError: 'function' object has no attribute 'im_func'
Metadata
Metadata
Assignees
Labels
No labels