Skip to content
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

Random point for tangent space #111

Merged

Conversation

const-ae
Copy link
Contributor

I wrote a random_point() and random_tangent() function for the TangentSpaceAtPoint manifolds. Both are pretty straightforward, as they both simply call random_tangent() for the original manifold. Let me know if you think that could be a useful contribution.

@codecov
Copy link

codecov bot commented Feb 28, 2022

Codecov Report

Merging #111 (35cdd6f) into master (cdaeee4) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #111   +/-   ##
=======================================
  Coverage   99.63%   99.63%           
=======================================
  Files          47       47           
  Lines        3023     3027    +4     
=======================================
+ Hits         3012     3016    +4     
  Misses         11       11           
Impacted Files Coverage Δ
src/Manopt.jl 100.00% <ø> (ø)
src/helpers/random.jl 100.00% <100.00%> (ø)

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@kellertuer
Copy link
Member

Sure sounds reasonable (though simple), could you check for the 4 lines missing in code coverage, i.e. also write tests for your new functions?

The docs look okay, but could also be a little longer.

@const-ae
Copy link
Contributor Author

@const-ae
Copy link
Contributor Author

The docs look okay, but could also be a little longer.

I will see if I can add a bit more text tomorrow :)

@kellertuer
Copy link
Member

Does the direct comparison link work?
https://app.codecov.io/gh/JuliaManifolds/Manopt.jl/compare/111/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr%20comments&utm_term=JuliaManifolds#diff-c3JjL2hlbHBlcnMvcmFuZG9tLmps

It seems for now your new functions are not called

Also you have to merge master once to here in order to be able to merge this later on.

@mateuszbaran
Copy link
Member

Thanks for the contribution! The coverage is not detected because your new tests are in a file that is not run during CI. You need to include() test_random.jl in test/runtests.jl.

@kellertuer
Copy link
Member

Ah that I did not see that fast then even on the current master these are not run – but luckily now they are :)

@kellertuer
Copy link
Member

this one is nearly ready to merge, we are just missing code coverage for the 4 new lines it seems?

@const-ae
Copy link
Contributor Author

const-ae commented Mar 3, 2022

Great. I will take a look tomorrow :)

@kellertuer
Copy link
Member

(Sorry for the little delay) if you could bump the version to 0.3.19 we could also directly register this so its available for everyone who updates.
Then I can directly merge this :)

@kellertuer kellertuer merged commit b0c2c8e into JuliaManifolds:master Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants