-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
TST refactor test for PCA #14138
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
TST refactor test for PCA #14138
Conversation
I would need some warriors here: ping @thomasjpfan @NicolasHug @rth @rth was it what we were discussing? |
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.
This is great @glemaitre thank you! Will definitely make things easier for the LOBPCG PR.
It's indeed not that easy to review, but I haven't seen any issues. LGTM.
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.
Otherwise LGTM.
(Is it time to sweep through the code base with assert replacing assert_equal and assert_greater as we did for assert_true and assert_false? I don't think unit tests are high risk for merge conflicts with PRs.)
…/refactor_test_pca
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.
I think all of the above comments were addressed. Merging. Thanks!
To ease implementing the tests in #12319, I am refactoring some of the tests in
test_pca.py
using pytest parametrization. This can be useful even if #12319 is not merged.