I'm trying to figure out a way to pull the text data generated by the Polarization Pupil Map analysis tool in OpticStudio into python using the ZOS-API Interactive Extension so that I don't need to download text files. Does anyone know how to do this?
Accessing Polarization Analysis features using the ZOSAPI

Best answer by David.Nguyen
Hi Scott,
Last time I checked, the Polarization Pupil Map wasn’t fully implemented into the ZOS-API. Therefore, you have to create the intermediate text file. Some analysis are partially implemented, meaning you can read an array directly, or edit the settings directly from the ZOS-API, some analysis are fully implemented, meaning you can do everything from within the ZOS-API. The developers are constantly implementing theses features, but I guess they prioritze the most utilized analysis features first.
If you want to know more about what status is a particular analysis, have a look at this article. Although, I wasn’t able to run the code as it is documented now (I think it uses an old boilerplate template), the method described there are generally valid (in some rare instances, an analysis, like RMS vs Field, might return a DataGrid or DataSeries although it is empty...).
Take care,
David
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.