Last active
June 17, 2021 15:54
-
-
Save Omnistic/cfff35796e7cf9cbbda9b1de90d104e2 to your computer and use it in GitHub Desktop.
ZOS-API: GetOperandValue with POPD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
surface = 0 # Saved ending surface | |
wavelength = 0 # Saved wavelength | |
field = 0 # Saved field | |
data = 0 # Total fiber coupling | |
# Retrieve the value of a POPD operand without going into the LDE | |
Total_fiber_coupling = TheSystem.MFE.GetOperandValue(ZOSAPI.Editors.MFE.MeritOperandType.POPD, | |
surface, wavelength, field, data, 0, 0, 0, 0) | |
# Print the value | |
print(Total_fiber_coupling) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment