Skip to content

Instantly share code, notes, and snippets.

@Omnistic
Last active June 17, 2021 15:54
Show Gist options
  • Save Omnistic/cfff35796e7cf9cbbda9b1de90d104e2 to your computer and use it in GitHub Desktop.
Save Omnistic/cfff35796e7cf9cbbda9b1de90d104e2 to your computer and use it in GitHub Desktop.
ZOS-API: GetOperandValue with POPD
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