Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failing test_get_zernike_modes_sensorless #17

Open
carandraug opened this issue May 26, 2021 · 0 comments
Open

failing test_get_zernike_modes_sensorless #17

carandraug opened this issue May 26, 2021 · 0 comments

Comments

@carandraug
Copy link
Member

The test test_get_zernike_modes_sensorless is failing:

$ python3 microAO/testsuite/test_functions.py TestAOFunctions.test_get_zernike_modes_sensorless
[...]
======================================================================
FAIL: test_get_zernike_modes_sensorless (__main__.TestAOFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "microAO/testsuite/test_functions.py", line 291, in test_get_zernike_modes_sensorless
    np.testing.assert_almost_equal(-1 * coef[noll_ind-1], self.true_max_modes_z[noll_ind-1],decimal=2)
  File "/home/carandraug/.local/lib/python3.7/site-packages/numpy/testing/_private/utils.py", line 595, in assert_almost_equal
    raise AssertionError(_build_err_msg())
AssertionError: 
Arrays are not almost equal to 2 decimals
 ACTUAL: 0.0
 DESIRED: 0.3

----------------------------------------------------------------------
Ran 1 test in 0.843s

FAILED (failures=1)

I have tried to checkout older versions of the code. This test was added in 394acb9 on on my setup it still failed. This might be some version incompatibility. Here's the stuff I'm running (Debian 10):

$ pip3 show aotools numpy scipy numba | grep -A1 '^Name'
Name: aotools
Version: 1.0.4
--
Name: numpy
Version: 1.19.5
--
Name: scipy
Version: 1.4.1
--
Name: numba
Version: 0.42.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant