Skip to main content
Solved

ZOS-API FftMtf analysis Wavelength bug on 23.1

  • February 28, 2023
  • 4 replies
  • 92 views

Hello, 

Since I updated to 23.1, I have an issue with FftMtf analysis settings, which has no “Wavelength” attribute. You can see the error on the screenshot. The test script I am showing is a modified MTF ZOS-API example (PythonStandalone_04_pull_data_from_FFTMTF.py). This sample works ok by itself but fails if I try to add line 189 in the screenshot.

Error message when trying to access FftMtf analysis settings.Wavelength

I tried to revert to 22.3 but it did not help. I am not 100% sure it is linked to the update.

Any ideas?

Best answer by David.Nguyen

Hi Raphael,

 

I’ve seen this error several times now. I’m guessing you’re using a version of Pythonnet > 2.5.2. Try reverting to Pythonnet 2.5.2.

Take care,

 

David

View original
Did this topic help you find an answer to your question?

4 replies

David.Nguyen
Luminary
Forum|alt.badge.img+2
  • Luminary
  • 1098 replies
  • Answer
  • February 28, 2023

Hi Raphael,

 

I’ve seen this error several times now. I’m guessing you’re using a version of Pythonnet > 2.5.2. Try reverting to Pythonnet 2.5.2.

Take care,

 

David


  • Author
  • Monochrome
  • 7 replies
  • February 28, 2023

 

David.Nguyen wrote:

Hi Raphael,

 

I’ve seen this error several times now. I’m guessing you’re using a version of Pythonnet > 2.5.2. Try reverting to Pythonnet 2.5.2.

Take care,

 

David

Hi David,

Thanks a lot, it works! This also means we are limited to python 3.8 (I had upgraded to 3.9).

Does anyone at Zemax know if this will be corrected?

Thanks!

Raphael


David.Nguyen
Luminary
Forum|alt.badge.img+2
  • Luminary
  • 1098 replies
  • February 28, 2023

Hi Raphael,

 

I think Zemax is aware of the issue:

But what I don't know is if this is something they can fix or if the problem is with Pythonnet. Better ask Zemax themselves.

I must add that some stuff still works with more recent version of Pythonnet, but its quite inpredictable. In some projects, I use more recent versions of Python and Pythonnet, and it works fine. If anything, I would say the issue is mostly with analyses.

Take care,

 

David


  • Author
  • Monochrome
  • 7 replies
  • February 28, 2023

Haha indeed, I was actually reading some of those, thanks for your help!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings