Skip to content

failing test_get_zernike_modes_sensorless #17

@carandraug

Description

@carandraug

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions