Hello,
I’m trying to convert the following C# code snippet:
var hpsf =TheSystem.Analyses.New_Analysis(AnalysisIDM.HuygensPsfCrossSection);
var hpsf_settings = hpsf.GetSettings() as IAS_HuygensPsfCrossSection;
hpsf_settings.PupilSampleSize = (SampleSizes)(_pupilSampling + 1);
hpsf_settings.ImageSampleSize = (SampleSizes)(_imageSampling + 1);
hpsf_settings.ImageDelta = 0;
into Python:
hpsf= TheSystem.Analyses.New_Analysis(ZOSAPI.Analysis.AnalysisIDM.HuygensPsfCrossSection)
hpsf_setting=hpsf.GetSettings()
hpsf_settings.ImageDelta = 0
but I got error message
AttributeError: 'IAS_' object has no attribute 'ImageDelt
How can I cast hpsf_setting returned by GetSettings() into a HuygensPsfCrossSection specific object?
Thank you very much!
lin