Skip to content

testQuatArrays tests fail on some arches #515

Description

@sertonix

Hi, I noticed that in the Alpine Linux CI the testQuatArrays test fails on some arches (aarch64/loongarch64/ppc64le/riscv64/s390x) and works fine on others (armv7/armhf/x86/x86_64).

I added a print .__repr__() for the values used in the assert that fails:

Running testQuatArrays
Quatf(-4.03840588e-08, 0.923879564, -0.382683426, -1.67276255e-08) == Quatf(-4.03840623e-08, 0.923879564, -0.382683456, -1.67276273e-08)
Traceback (most recent call last):
  File "/tmp/src/Imath-3.2.1/src/python/PyImathTest/pyImathTest.py", line 10815, in <module>
    test[1]()
  File "/tmp/src/Imath-3.2.1/src/python/PyImathTest/pyImathTest.py", line 10630, in testQuatArrays
    assert (q4[i] == q3[i].slerpShortestArc (q1[i], 0.5))
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError

It looks like there are small differences in the resulting floats. Does Imath need the values to be exactly the same or can the equality check be replaced with a check that ensures a small distance between points?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions