Skip to content

test_check_function[cfcf68] fails on aarch64 #70

@ggardet

Description

@ggardet

test_check_function[cfcf68] fails on aarch64 since version 3.4.0.

[   64s] =================================== FAILURES ===================================
[   64s] _________________________ test_check_function[cfcf68] __________________________
[   64s] 
[   64s] cfcf = ({'SA_Arctic': array([[27.66974178, 28.53097125, 29.79813634],
[   64s]        [28.13780824, 28.15201013, 29.69700253],
[   64s]        ...17e-05,             nan]]), 'ICT_second_deriv': array([18])}, <check_functions.FunctionCheck object at 0xffff8e0f6be0>)
[   64s] 
[   64s]     def test_check_function(cfcf):
[   64s]         cv, cf, mfunc = cfcf
[   64s]         mfunc.run(locals())
[   64s]         if mfunc.exception is not None or not mfunc.passed:
[   64s]             print('\n', mfunc.name)
[   64s]             print('  ', mfunc.runline)
[   64s]             print('  ', mfunc.testline)
[   64s]             if mfunc.exception is None:
[   64s]                 mfunc.exception = ValueError('Calculated values are different from the expected matlab results.')
[   64s] >           raise mfunc.exception
[   64s] E           ValueError: Calculated values are different from the expected matlab results.
[   64s] 
[   64s] gsw/tests/test_check_functions.py:62: ValueError
[   64s] ----------------------------- Captured stdout call -----------------------------
[   64s] 
[   64s]  CT_second_derivatives
[   64s]    cf.CT_SA_SA, cf.CT_SA_pt, cf.CT_pt_pt = CT_second_derivatives(cv.SA_chck_cast,cf.pt)
[   64s]    cf.ICT_second_deriv = find((abs(cv.CT_SA_SA - cf.CT_SA_SA) >= cv.CT_SA_SA_ca ) | ( abs(cv.CT_SA_pt - cf.CT_SA_pt) >= cv.CT_SA_pt_ca ) | ( abs(cv.CT_pt_pt - cf.CT_pt_pt) >= cv.CT_pt_pt_ca))
[   64s] =========================== short test summary info ============================
[   64s] FAILED gsw/tests/test_check_functions.py::test_check_function[cfcf68] - Value...
[   64s] ============ 1 failed, 167 passed, 1 skipped, 1 deselected in 5.96s ============

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