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

add extrinsic to spherical and its tangent #1195

Merged
merged 4 commits into from Dec 2, 2021

Conversation

nguigs
Copy link
Collaborator

@nguigs nguigs commented Nov 30, 2021

Add functions to work with spherical coordinates

@codecov
Copy link

codecov bot commented Nov 30, 2021

Codecov Report

Merging #1195 (f4fc596) into master (7d14f83) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1195      +/-   ##
==========================================
- Coverage   94.32%   94.31%   -0.00%     
==========================================
  Files          90       90              
  Lines        9072     9102      +30     
==========================================
+ Hits         8556     8584      +28     
- Misses        516      518       +2     
Flag Coverage Δ
autograd 93.92% <100.00%> (-<0.01%) ⬇️
numpy 91.51% <100.00%> (+0.04%) ⬆️
pytorch 84.74% <100.00%> (+0.06%) ⬆️
tensorflow 81.44% <100.00%> (+0.07%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
geomstats/geometry/hypersphere.py 88.36% <100.00%> (+1.34%) ⬆️
geomstats/learning/kmeans.py 85.72% <0.00%> (-1.78%) ⬇️
geomstats/learning/expectation_maximization.py 87.23% <0.00%> (-0.55%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7d14f83...f4fc596. Read the comment docs.

Copy link
Collaborator

@ninamiolane ninamiolane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good as long as the docstring is added, with a specification of what 3D point is chosen as the origin of the theta and phi.

@@ -173,6 +174,71 @@ def tangent_spherical_to_extrinsic(

return tangent_vec_extrinsic

def extrinsic_to_spherical(self, point_extrinsic):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a docstring?

It would be nice to add there which point is considered the origin of the spherical coordinates.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry forgot! Weird that DeepSource didn't detect it though

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah....

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And now adding docstrings fails codecov?

@ninamiolane ninamiolane merged commit 8991aed into geomstats:master Dec 2, 2021
@nguigs nguigs deleted the nguigs-spherical branch December 7, 2021 15:05
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.

None yet

2 participants