Closed javierggt closed 4 years ago
Added fixes and tests for bugs that appeared in proseco regression tests. Now all testr tests in SKA3_HEAD pass.
Is this ready for review?
This has been here for a while.
Just to be explicit, you have tested this current version with Chandra.Maneuver and it passes tests?
Yes, when I made the comment above, I ran testr HEAD tests. Same I am running now.
Copying my comment from Issue #18 here:
The problem is in the multiplication. All attributes ere being squeezed to the right shape, but when multiplying two quaternions the result is being inadvertently reshaped, because the result is created from the two input quaternions after applying np.atleast_2d.
One solution is to check the shape of the original quaternions and reshape after the multiplication operation.
While doing this, I realized that there is an implicit broadcasting. We did not think of a generic broadcasting, but the current behavior allows one to do this:
This is because there is a check that both quaternions have the same shape, but again this is done after np.atleast_2d.
Options:
Closes #18