8000 Test failure with Numpy 2 · Issue #413 · aubio/aubio · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Test failure with Numpy 2 #413
Open
Open
@FliegendeWurst

Description

@FliegendeWurst

Test python/tests/test_cvec.py::aubio_cvec_test_case::test_assign_cvec_phas_slice

def test_assign_cvec_phas_slice(self):
spec = cvec(1024)
spec.phas[39:-1] = -np.pi
assert_equal(spec.phas[0:39], 0)
assert_equal(spec.phas[39:-1], -np.pi)
assert_equal(spec.norm, 0)

fails with

E       AssertionError:
E       Arrays are not equal
E
E       Mismatched elements: 473 / 473 (100%)
E       Max absolute difference among violations: 8.74227801e-08
E       Max relative difference among violations: 2.78275352e-08
E        ACTUAL: array([-3.141593, -3.141593, -3.141593, -3.141593, -3.141593, -3.141593,
E              -3.141593, -3.141593, -3.141593, -3.141593, -3.141593, -3.141593,
E              -3.141593, -3.141593, -3.141593, -3.141593, -3.141
4C4E
593, -3.141593,...
E        DESIRED: array(-3.141593)

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

      0