Skip to content

Instantly share code, notes, and snippets.

@Omnistic
Omnistic / gist:efcb02f11c3e1764d1f7e623404b19e3
Created May 10, 2021 14:21
ZOS-API: Save Polarization Pupil Map results to a text file
# Create a Polarization Pupil Map analysis
MyPolarizationPupilMap = TheSystem.Analyses.New_Analysis(ZOSAPI.Analysis.AnalysisIDM.PolarizationPupilMap)
# Check the implementation status of this analysis feature in the ZOSAPI
print('Does Polarization Pupil Map have fully-implemented settings?', MyPolarizationPupilMap.HasAnalysisSpecificSettings)
# This means the settings needs to be accessed through IAS_.ModifySettings (see Example 17 in the ZOSAPI Syntax Help)
# Retrieve Polarization Pupil Map results
MyPolarizationResults = MyPolarizationPupilMap.GetResults()
@Omnistic
Omnistic / gist:307ff99564c92d4563533f7514793e4a
Created May 10, 2021 14:19
ZOS-API: Save Footprint Diagram results to a text file
# Create a Footprint Diagram analysis
FootprintDiagram = TheSystem.Analyses.New_Analysis(ZOSAPI.Analysis.AnalysisIDM.FootprintSettings)
# Check the implementation status of this analysis feature in the ZOSAPI
print('Does Wavefront Map have fully-implemented settings?', FootprintDiagram.HasAnalysisSpecificSettings)
# This means the settings needs to be accessed through IAS_.ModifySettings (see Example 17 in the ZOSAPI Syntax Help)
# Retrieve Footprint Diagram results
FootprintDiagramResults = FootprintDiagram.GetResults()