zospy.api.codecs

Contents

zospy.api.codecs#

Custom object conversions between the CLR and Python.

Python.NET allows to customize the conversion of objects between the Common Language Runtime (CLR) and Python using Codecs [1]. This module implements codecs for automatic conversions for certain ZOS-API objects.

References#

Functions

register_codecs()

Register all custom codecs.

try_register_encoder(encoder)

Register encoder as Python.NET codec.

Classes

OpticStudioInterfaceEncoder

Automatic downcasting of generic interfaces to specific interfaces.