KieranWynn / pyquaternion

A fully featured, pythonic library for representing and using quaternions
http://kieranwynn.github.io/pyquaternion/
MIT License
339 stars 68 forks source link

Error in the __float__ method #42

Closed Hojjatrt closed 4 years ago

Hojjatrt commented 5 years ago

hey, guys in the float method we have an error:

DeprecationWarning: Quaternion.float returned non-float (type numpy.float64). The ability to return an instance of a strict subclass of float is deprecated, and may be removed in a future version of Python. print(float(dq.real))

I can pull this to the master

KieranWynn commented 4 years ago

Resolved by https://github.com/KieranWynn/pyquaternion/pull/43