Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@luisfpereira
Copy link
Collaborator

Moves test_examples to main tests folder and tests notebooks and examples together in a test workflow called "scripts".

Reasoning: notebooks and examples are script-like code. I think they should be tested together (or, at least, examples should not be tested within tests_geomstats, as it is of a different nature - e.g. they only check if it runs, they do not validate the results).

@codecov
Copy link

codecov bot commented Jun 15, 2022

Codecov Report

Merging #1583 (1efb834) into master (01195b5) will decrease coverage by 10.80%.
The diff coverage is n/a.

❗ Current head 1efb834 differs from pull request most recent head 462cefa. Consider uploading reports for the commit 462cefa to get more accurate results

@@             Coverage Diff             @@
##           master    #1583       +/-   ##
===========================================
- Coverage   91.11%   80.31%   -10.79%     
===========================================
  Files         108      102        -6     
  Lines       10364    10419       +55     
===========================================
- Hits         9442     8367     -1075     
- Misses        922     2052     +1130     
Flag Coverage Δ
autograd ?
numpy ?
pytorch 80.31% <ø> (?)

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

Impacted Files Coverage Δ
geomstats/learning/pca.py 14.64% <0.00%> (-79.67%) ⬇️
geomstats/datasets/prepare_emg_data.py 22.86% <0.00%> (-77.14%) ⬇️
geomstats/learning/online_kmeans.py 18.19% <0.00%> (-75.00%) ⬇️
.../learning/agglomerative_hierarchical_clustering.py 28.58% <0.00%> (-71.42%) ⬇️
geomstats/geometry/stratified/wald_space.py 26.39% <0.00%> (-63.82%) ⬇️
geomstats/geometry/stratified/spider.py 31.82% <0.00%> (-62.50%) ⬇️
geomstats/information_geometry/gamma.py 34.23% <0.00%> (-57.20%) ⬇️
geomstats/information_geometry/dirichlet.py 38.39% <0.00%> (-54.92%) ⬇️
geomstats/learning/exponential_barycenter.py 49.02% <0.00%> (-50.98%) ⬇️
geomstats/learning/expectation_maximization.py 42.23% <0.00%> (-45.55%) ⬇️
... and 48 more

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 01195b5...462cefa. Read the comment docs.

@luisfpereira
Copy link
Collaborator Author

@SaitejaUtpala, do you see a better way of doing this? I don't really like that if...

@luisfpereira luisfpereira requested review from ninamiolane and removed request for SaitejaUtpala June 15, 2022 12:47
@luisfpereira luisfpereira marked this pull request as ready for review June 15, 2022 12:49
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.

LGTM! I let you resolve the github conflicts and address my micro comment?

python-version: [3.8]
geomstats-backend : ['autograd','numpy','pytorch','tensorflow']
test-folder : ['tests/tests_geomstats/' , 'tests/test_notebooks.py']
test-folder : ['tests/tests_geomstats/' , 'scripts']
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe test-folder should be renamed, since "scripts" is not a folder?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ah your comment made me realize that the better way to go may be to create a folder test_scripts and move there both test files, so that the workflow code becomes much simpler. What do you think?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@LPereira95 Definitely, great idea! Especially since we want, eventually, to have a common folder for the examples/notebooks themselves 🎉

@SaitejaUtpala
Copy link
Collaborator

@SaitejaUtpala, do you see a better way of doing this? I don't really like that if...

I think what you said is good idea, have separate folder for the test files of examples and notebooks.

@luisfpereira luisfpereira merged commit c63a4cf into geomstats:master Jun 15, 2022
@luisfpereira luisfpereira deleted the test_examples_loc branch June 16, 2022 17:29
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