Package Details: python-numpy-quaternion 2024.0.3-1

Git Clone URL: https://aur.archlinux.org/python-numpy-quaternion.git (read-only, click to copy)
Package Base: python-numpy-quaternion
Description: Add built-in support for quaternions to NumPy
Upstream URL: https://quaternion.readthedocs.io/
Licenses: MIT
Submitter: bcb
Maintainer: bcb
Last Packager: bcb
Votes: 0
Popularity: 0.000000
First Submitted: 2019-08-05 08:37 (UTC)
Last Updated: 2024-11-16 12:11 (UTC)

Latest Comments

bcb commented on 2024-11-16 12:11 (UTC)

NumPy 2 is now supported from version 2024.0.3.

gyscos commented on 2024-08-13 12:47 (UTC)

The upstream project currently is not compatible with the recently released numpy 2, and specifically requires numpy < 2:

https://github.com/moble/quaternion/commit/bebace62f03a896eef0a613670e64441a3ebdd77

We could forward this requirement here, but given that the official numpy package is already at version 2, it will be challenging to keep this package building.

<deleted-account> commented on 2019-11-15 16:34 (UTC)

This happens now in Python 3.8:

===================================================================================================== ERRORS ======================================================================================================
__________________________________________________________________________________________ ERROR collecting __init__.py ___________________________________________________________________________________________
ImportError while importing test module '/home/user/.cache/pikaur/build/python-numpy-quaternion/src/numpy-quaternion-2019.10.3.10.26.21/__init__.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
__init__.py:8: in <module>
    from .numpy_quaternion import (quaternion, _eps,
E   ImportError: attempted relative import with no known parent package
================================================================================================ warnings summary =================================================================================================
build/lib.linux-x86_64-3.8/quaternion/numba_wrapper.py:20
  /home/user/.cache/pikaur/build/python-numpy-quaternion/src/numpy-quaternion-2019.10.3.10.26.21/build/lib.linux-x86_64-3.8/quaternion/numba_wrapper.py:20: UserWarning: 

  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  Could not import from numba, which means that some
  parts of this code may run MUCH more slowly.  You
  may wish to install numba.
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    warnings.warn(warning_text)

-- Docs: https://docs.pytest.org/en/latest/warnings.html
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
========================================================================================== 1 warnings, 1 error in 0.70s ===========================================================================================

bcb commented on 2019-10-01 17:41 (UTC)

@alleut The fix was applied by upstream and is in the latest release which I have just packaged. Let me know if you have further problems with it.

bcb commented on 2019-09-29 10:18 (UTC) (edited on 2019-09-29 10:18 (UTC) by bcb)

Looks like a simple floating-point comparison error. Interesting that you ran into that and I didn't.

Anyway, I've submitted a pull request to upstream which should fix this (I see you or somebody else filed a bug report there already, thanks). I've also uploaded a new release which applies this fix before building. Could you try this and let me know if it works?

<deleted-account> commented on 2019-09-28 23:38 (UTC)

Test do not pass with the update from 28.08.19:

=================================== FAILURES ===================================
___________________________ test_quaternion_absolute ___________________________
test/test_quaternion.py:585: in test_quaternion_absolute
    assert q.abs() == a
E   assert 6.024948132556828 == 6.024948132556827
E     -6.024948132556828
E     +6.024948132556827
_____________________________ test_quaternion_norm _____________________________
test/test_quaternion.py:599: in test_quaternion_norm
    assert q.norm() == a
E   assert 36.300000000000004 == 36.3
E     -36.300000000000004
E     +36.3
=================== 2 failed, 66 passed, 4 xfailed in 16.69s ===================