Hello,
i am using Zemax Optics Studio 23.1 and trying to run the python example files included in the “Zemax\ZOS-API Sample Code\Python” directory.
While others seem to work, when trying to run “PythonStandalone_23_ray_fan_native_manual_comparison.py” i get an error.
----Traceback (most recent call last):
File "c:\ex\PythonStandalone_23_ray_fan_native_manual_comparison.py", line 262, in <module>
ray_settings.Field.UseAllFields()
^^^^^^^^^^^^^^^^^^
AttributeError: 'IAS_' object has no attribute 'Field'
Exception ignored in: <function PythonStandaloneApplication.__del__ at 0x000001D4F7E9F880>
Traceback (most recent call last):
File "c:\ex\PythonStandalone_23_ray_fan_native_manual_comparison.py", line 72, in __del__
TypeError: 'MethodObject' object is not callable
----
I run the original file without any changes.
Could somebody please possibly advise if eventually the API did evolve and this particular example file is no more compatible?
Best regards
Dimiter
Best answer by David.Nguyen
View original