How to use the aotools.functions.zernikeRadialFunc function in aotools

To help you get started, we’ve selected a few aotools examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github AOtools / aotools / test / test_zernike.py View on Github external
def test_zenikeRadialFunc():
    coordinates = numpy.linspace(-1, 1, 32)
    x, y = numpy.meshgrid(coordinates, coordinates)
    r = numpy.sqrt(x ** 2 + y ** 2)

    radial_function = functions.zernikeRadialFunc(5, 3, r)
    # test no casting error for high order modes
    _ = functions.zernikeRadialFunc(21, 1, r)
    _ = functions.zernikeRadialFunc(50, 16, r)
    assert(radial_function.shape == (32, 32))
github AOtools / aotools / test / test_zernike.py View on Github external
def test_zenikeRadialFunc():
    coordinates = numpy.linspace(-1, 1, 32)
    x, y = numpy.meshgrid(coordinates, coordinates)
    r = numpy.sqrt(x ** 2 + y ** 2)

    radial_function = functions.zernikeRadialFunc(5, 3, r)
    # test no casting error for high order modes
    _ = functions.zernikeRadialFunc(21, 1, r)
    _ = functions.zernikeRadialFunc(50, 16, r)
    assert(radial_function.shape == (32, 32))
github AOtools / aotools / test / test_zernike.py View on Github external
def test_zenikeRadialFunc():
    coordinates = numpy.linspace(-1, 1, 32)
    x, y = numpy.meshgrid(coordinates, coordinates)
    r = numpy.sqrt(x ** 2 + y ** 2)

    radial_function = functions.zernikeRadialFunc(5, 3, r)
    # test no casting error for high order modes
    _ = functions.zernikeRadialFunc(21, 1, r)
    _ = functions.zernikeRadialFunc(50, 16, r)
    assert(radial_function.shape == (32, 32))