Clean commented code from CircularAperture
Skip zero-coefficient terms in ParameterizedDistortion getPhasor
Check that basis_factory is callable, pupil_radius is numeric