-
Notifications
You must be signed in to change notification settings - Fork 44
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
upgrade mean of rotations to new LinearAlgebra syntax #90
Conversation
Codecov Report
@@ Coverage Diff @@
## master #90 +/- ##
===========================================
- Coverage 86.99% 71.95% -15.05%
===========================================
Files 9 8 -1
Lines 746 731 -15
===========================================
- Hits 649 526 -123
- Misses 97 205 +108
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Would you mind adding a test? The reason this broke in the first place is that mean
is not properly tested, so it would be great to prevent more breakage from happening in the future.
src/euler_types.jl
Outdated
@@ -14,7 +14,7 @@ for axis in [:X, :Y, :Z] | |||
@eval begin | |||
struct $RotType{T} <: Rotation{3,T} | |||
theta::T | |||
$RotType{T}(theta) where {T} = new{T}(theta) | |||
$RotType{T}(theta::Real) where {T} = new{T}(theta) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change seems unrelated and would break e.g. interop with SymPy.Sym
. Please revert.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops! haha I left that in by accident. There are some problems with mean() in its current form that I was trying to address. Namely that you cannot take the mean of two or three axis rotations. I'll file an issue for that!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and I'll definitely add a test. I'm a little slammed right now but in a day or two!
Is this one still relevant? |
It seems adding tests is not finished, and the return value type of |
mean was complaining about no eigfact function existing. This PR updates to current LinearAlgebra syntax which is eigvecs.