-
Notifications
You must be signed in to change notification settings - Fork 8
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
check_manifold_point and check_tangent_vector throw right error types #15
Conversation
Codecov Report
@@ Coverage Diff @@
## master #15 +/- ##
==========================================
+ Coverage 98.56% 98.63% +0.07%
==========================================
Files 3 3
Lines 209 220 +11
==========================================
+ Hits 206 217 +11
Misses 3 3
Continue to review full report at Codecov.
|
I like the names To be precise: The name of the function does not provide an action indicating, what the function does (like Despite that, since it is breaking, I am ok with doing a version 0.1.1 with that. |
So, what name would you suggest? Maybe
By new minor release I actually meant 0.2.0 (it's major.minor.patch). |
Thanks for the clarification on the version number, then, of course 0.2.0 For the name. So as far as I see, both functions aim to do the same, despite the fact that one throws an error, the other just returns it. Can't we unify that into one function with an optional argument? I actually liked the names Otherwise the functions are a little too similar to come up with two names, really – at least for me. |
I really think that the functionality of We can, however, unify |
Ah, I missed something, we actually have three functions then (keeping old names for clarity)
And I think it is reasonable to have a function that has no optional arguments nor throws an error, that just (attention!) checks a point for easy error checking and still getting information (like the first). And I am also for unifying the second and third. So what about
What do you think? |
That's reasonable, I'll modify it this way. |
I think I've modified the functions correctly. |
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.
Cool, that you also extended typed vector transports.
I've corrected an error in
check_manifold_point
andcheck_tangent_vector
. I'd suggest tagging a new minor release after merging this as it's technically breaking. I needed to change a few tests in JuliaManifolds/Manifolds.jl#46 due to this.