Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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))
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))
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))