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

Fix nose2 warnings #410

Merged
merged 5 commits into from Jan 28, 2020
Merged

Fix nose2 warnings #410

merged 5 commits into from Jan 28, 2020

Conversation

est271
Copy link
Contributor

@est271 est271 commented Jan 28, 2020

fixes issue #380

ignores UserWarnings on Numpy and PyTorch backends when running the command nose2 tests. Only Sklearn deprecated FutureWarning is left in (can be ignored upon request).

Unfortunately I'm unable to see the results using the Tensorflow backend due to the following issue and my computer being a bit older:
github.com/tensorflow/tensorflow/issues/17411

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.

This is great, thank you!

@@ -460,7 +461,7 @@ def while_loop_body(iteration, mean, variance, sq_dist):
maximum_iterations=n_max_iterations)

if last_iteration == n_max_iterations:
print('Maximum number of iterations {} reached.'
warnings.warn('Maximum number of iterations {} reached.'
Copy link
Collaborator

Choose a reason for hiding this comment

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

The continuous integration tests fail because of this line (flake8 complains). Could you pep8 the style? Thanks!

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

forgot to run flake8 one last time before submitting PR. Just fixed it

@codecov
Copy link

codecov bot commented Jan 28, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@eb5d5f7). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #410   +/-   ##
=========================================
  Coverage          ?   93.45%           
=========================================
  Files             ?       90           
  Lines             ?    10486           
  Branches          ?        0           
=========================================
  Hits              ?     9800           
  Misses            ?      686           
  Partials          ?        0
Flag Coverage Δ
#numpy 88.46% <83.33%> (?)
#pytorch 45.8% <100%> (?)
#tensorflow 45.96% <83.33%> (?)
Impacted Files Coverage Δ
geomstats/geometry/riemannian_metric.py 88.26% <100%> (ø)
tests/test_examples.py 100% <100%> (ø)
tests/test_special_orthogonal.py 100% <100%> (ø)
tests/test_connection.py 98.63% <100%> (ø)

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 eb5d5f7...ae4c9b8. Read the comment docs.

@ninamiolane ninamiolane merged commit bd4fce7 into geomstats:master Jan 28, 2020
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