Skip to main content
Solved

ZOS-API - access to "Clear Vignetting" and "Set Vignetting" with Python


YuY
  • Monochrome
  • 2 replies

Hi,

I’m trying to clear the vignetting and recalculate the vignetting by using the “Set Vignetting” and “Clear Vignetting” in the System explorer. I’m wondering if this accessible in zosapi?

Thanks, 

 

 

Best answer by David.Nguyen

@YuY 

 

I believe those two features are accessed in the ZOS-API with:

TheSystem.SystemData.Fields.SetVignetting()
TheSystem.SystemData.Fields.ClearVignetting()

Regarding the FFT MTF settings. I would advise to start a new topic if the question does not fall within the context of the initial topic. That being said, I believe the issue is related to this:

Can you try changing this line of code:

newWin_Settings = newWin.GetSettings()

With this new one:

newWin_Settings = newWin.GetSettings().__implementation__

Notice the __implementation__ at the end. It should fix the issue. Let us know otherwise.

Take care,

 

David

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

2 replies

YuY
  • Author
  • Monochrome
  • 2 replies
  • January 5, 2024

Additionally, 

I found that the fftMTF setting sample script doesn’t work.

# SettingsnewWin_Settings = newWin.GetSettings()newWin_Settings.MaximumFrequency = 50newWin_Settings.SampleSize = ZOSAPI.Analysis.SampleSizes.S_256x256

 

the max frequency and the sample size remains the same.

 


David.Nguyen
Luminary
Forum|alt.badge.img+2
  • Luminary
  • 1097 replies
  • Answer
  • January 5, 2024

@YuY 

 

I believe those two features are accessed in the ZOS-API with:

TheSystem.SystemData.Fields.SetVignetting()
TheSystem.SystemData.Fields.ClearVignetting()

Regarding the FFT MTF settings. I would advise to start a new topic if the question does not fall within the context of the initial topic. That being said, I believe the issue is related to this:

Can you try changing this line of code:

newWin_Settings = newWin.GetSettings()

With this new one:

newWin_Settings = newWin.GetSettings().__implementation__

Notice the __implementation__ at the end. It should fix the issue. Let us know otherwise.

Take care,

 

David


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