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_zernikeArray_single():
zernike_array = functions.zernikeArray(10, 32)
assert(zernike_array.shape == (10, 32, 32))
def test_zernikeArray_comparison():
full_zernike_array = functions.zernikeArray(10, 32)
subset_zernike_array = functions.zernikeArray([2, 3, 4], 32)
assert(numpy.allclose(full_zernike_array[1:4], subset_zernike_array))
def test_zernikeArray_list():
zernike_array = functions.zernikeArray([2, 3, 4], 32)
assert(zernike_array.shape == (3, 32, 32))
def test_zernikeArray_comparison():
full_zernike_array = functions.zernikeArray(10, 32)
subset_zernike_array = functions.zernikeArray([2, 3, 4], 32)
assert(numpy.allclose(full_zernike_array[1:4], subset_zernike_array))