Package Details: python-transforms3d 0.4.2-1

Git Clone URL: https://aur.archlinux.org/python-transforms3d.git (read-only, click to copy)
Package Base: python-transforms3d
Description: 3 dimensional spatial transformations for Python
Upstream URL: https://matthew-brett.github.io/transforms3d/
Licenses: BSD-2-Clause
Submitter: bcb
Maintainer: bcb
Last Packager: bcb
Votes: 2
Popularity: 0.000000
First Submitted: 2019-08-05 12:26 (UTC)
Last Updated: 2024-06-28 16:52 (UTC)

Latest Comments

micwoj92 commented on 2025-02-23 01:45 (UTC)

Check fails:

=================================== FAILURES ===================================
________________________________ test_aff2sadn _________________________________

    def test_aff2sadn():
        # Test actual implemtation
        rng = np.random.RandomState()
        for i in range(10000):
            angle = rng.uniform(-1, 1) * np.pi
            direct = random_unit_vector(rng)
            rnorm = random_normal(direct, rng)
            point = random_unit_vector(rng)
            # Make shear affine from angle, direction, normal and point
            S0 = tss.sadn2aff(angle, direct, rnorm, point)
            # Reconstruct angle, direction, normal, point from affine
            a, d, n, p = tss.aff2sadn(S0)
            S_actual = tss.sadn2aff(a, d, n, p)
>           assert_array_almost_equal(S0, S_actual, decimal=5)

transforms3d/tests/test_zooms_shears.py:156: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

args = (array([[-3.23807320e+05,  1.80173210e+05,  1.13234998e+06,
         5.89420765e+05],
       [-4.22013800e+05,  2.3481...9e+04,
         4.63227325e+04],
       [ 0.00000000e+00,  0.00000000e+00,  0.00000000e+00,
         1.00000000e+00]]))
kwargs = {'decimal': 5}, old_name = 'y', new_name = 'desired'

    @functools.wraps(fun)
    def wrapper(*args, **kwargs):
        for old_name, new_name in zip(old_names, new_names):
            if old_name in kwargs:
                if dep_version:
                    end_version = dep_version.split('.')
                    end_version[1] = str(int(end_version[1]) + 2)
                    end_version = '.'.join(end_version)
                    msg = (f"Use of keyword argument `{old_name}` is "
                           f"deprecated and replaced by `{new_name}`. "
                           f"Support for `{old_name}` will be removed "
                           f"in NumPy {end_version}.")
                    warnings.warn(msg, DeprecationWarning, stacklevel=2)
                if new_name in kwargs:
                    msg = (f"{fun.__name__}() got multiple values for "
                           f"argument now known as `{new_name}`")
                    raise TypeError(msg)
                kwargs[new_name] = kwargs.pop(old_name)
>       return fun(*args, **kwargs)
E       AssertionError: 
E       Arrays are not almost equal to 5 decimals
E       
E       Mismatched elements: 9 / 16 (56.2%)
E       Max absolute difference among violations: 0.00028796
E       Max relative difference among violations: 1.95122388e-10
E        ACTUAL: array([[-3.23807e+05,  1.80173e+05,  1.13235e+06,  5.89421e+05],
E              [-4.22014e+05,  2.34818e+05,  1.47577e+06,  7.68182e+05],
E              [-2.54482e+04,  1.41599e+04,  8.89927e+04,  4.63227e+04],
E              [ 0.00000e+00,  0.00000e+00,  0.00000e+00,  1.00000e+00]])
E        DESIRED: array([[-3.23807e+05,  1.80173e+05,  1.13235e+06,  5.89421e+05],
E              [-4.22014e+05,  2.34818e+05,  1.47577e+06,  7.68182e+05],
E              [-2.54482e+04,  1.41599e+04,  8.89927e+04,  4.63227e+04],
E              [ 0.00000e+00,  0.00000e+00,  0.00000e+00,  1.00000e+00]])

/usr/lib/python3.13/site-packages/numpy/_utils/__init__.py:85: AssertionError
=============================== warnings summary ===============================
transforms3d/tests/test_quaternions.py::test_quat2axangle
  /build/python-transforms3d/src/transforms3d-0.4.2/transforms3d/quaternions.py:569: RuntimeWarning: overflow encountered in square
    Nq = np.sum(quat ** 2)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED transforms3d/tests/test_zooms_shears.py::test_aff2sadn - AssertionError: 
=================== 1 failed, 51 passed, 1 warning in 4.72s ====================
==> ERROR: A failure occurred in check().
    Aborting...

bcb commented on 2023-02-16 20:42 (UTC)

Thanks for the report, I have updated the checksum. The real content of the package hadn't changed, but there was a slight change to how the automatically generated archive had the version information recorded which changed the checksum.

leuko commented on 2023-02-15 21:21 (UTC)

Checksum seems to be changed:

sha256sums=('27ff96c6dcc12bebc6faddea15916c29727fb33be0f85dda7dc7d8b376c0deed')