visisipy.wavefront#
Utilities for handling wavefront data.
Classes#
Zernike coefficients. |
Module Contents#
- class visisipy.wavefront.ZernikeCoefficients(terms: collections.abc.Mapping[int, float] | collections.abc.Mapping[tuple[int, int], float] | None = None)#
Bases:
collections.defaultdict[int,float]Zernike coefficients.
Convenience class for handling Zernike coefficients as a dictionary. If a term is not present, 0 is returned. Upon initialization and setting items, the keys are validated to be either positive integers or tuples of two integers.
- static to_noll(n: int, m: int)#
Convert Zernike indices to Noll indices.
- Parameters:
- nint
The radial order of the Zernike polynomial.
- mint
The azimuthal order of the Zernike polynomial.
- Returns:
- int
The Noll index corresponding to the given Zernike indices.