Package Details: python-numpy-quaternion 2019.10.3.10.26.21-1

Git Clone URL: https://aur.archlinux.org/python-numpy-quaternion.git (read-only)
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
Last Updated: 2019-10-05 09:16

Latest Comments

alleut commented on 2019-11-15 16:34

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

@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

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?

alleut commented on 2019-09-28 23:38

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 ===================