visisipy.wavefront#
Utilities for handling wavefront data.
Classes#
Zernike coefficients. |
Module Contents#
- class visisipy.wavefront.ZernikeCoefficients(terms: dict[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 non-negative integers.
Raises#
- TypeError
If the key is not an integer.
- ValueError
If the key is smaller than 1.