Closed CSSFrancis closed 2 months ago
Okay so we might have to adjust how we do things.
quaternion
class from quaternionic. It looks like we might get a downstream fix now, which would be excellent.
@pc494 thank goodness:) that was quickly turning into a bit of a nightmare to sort out
Sorry for answering late here...
The dependency on numpy-quaternion is NOT important. We only use it for quaternion-quaternion and quaternion-vector multiplication. Our "old" implementation used Numba, and as far as I can remember, it was only twice as slow.
If numpy-quaternion becomes a hassle, I'd suggest we make it an optional dependency: use it when available, but fall back to Numba if it's not. What do you think?
And I should say, I find storing the rotation handedness (proper -> right-handed, improper -> left-handed; or, if you will, the rotation followed by an inversion) as a fifth value 0 or 1 in the Rotation._data
array is rather elegant and makes the implementation easier.
I think this is safe to close.
@CSSFrancis any objection?
Description of the change
As per #506.
I'm running into some problems making this change becuase I'm not really sure what the improper
setter
functions works with the_data
attribute.The difference arrises from quaternionic forcing having 4 as the last shape and not automatically casting as the numpy-quaternion package does.
@hakonanes any advice for what might need to change as a result?
Progress of the PR
For reviewers
__init__.py
.CHANGELOG.rst
.__credits__
inorix/__init__.py
and in.zenodo.json
.