Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

as_float_array dimensions vary for python2 vs python3 #46

Closed
vyasr opened this issue May 5, 2017 · 1 comment
Closed

as_float_array dimensions vary for python2 vs python3 #46

vyasr opened this issue May 5, 2017 · 1 comment

Comments

@vyasr
Copy link

vyasr commented May 5, 2017

The following code snippet yields slightly different answers depending on whether it is run in python2 or python3:

>>> import quaternion as q
>>> p = q.quaternion(1, 2, 3, 4)
>>> print(q.as_float_array(p))

In python2:

[ 1.  2.  3.  4.]

In python3:

[[ 1.  2.  3.  4.]]

I imagine that the second behavior is preferable, but either way should be fine as long as it's consistent.

@moble
Copy link
Owner

moble commented May 7, 2017

The behavior was changed in issue #44, to go from what you list for python3 to what you list for python2. You evidently installed the updated package for python2, but still have the older version for python3. If you print(quaternion.__version__) it should be 2017.04.05.14.49.15.dev261789573, which is only built for conda with python 2.7 and 3.6. You can still install the package yourself in other versions, but not with a simple conda install command.

@moble moble closed this as completed May 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants