optic.context
OpticDataContext Protocol
Defines a read-only structural Protocol that captures the subset of Optic state needed by physics computation classes (Aberrations, Paraxial, etc.). Accepting this Protocol instead of the full Optic type allows unit testing without constructing a complete optical system.
Kramer Harrison, 2026
Classes
|
Read-only view of Optic state needed by physics computation classes. |
- class OpticDataContext(*args, **kwargs)[source]
Read-only view of Optic state needed by physics computation classes.
Any object satisfying this Protocol may be passed where an Optic is currently required by Aberrations, Paraxial, or similar classes. This enables unit testing without constructing a full Optic.
- property surfaces: SurfaceGroup
- property wavelengths: WavelengthGroup