-
Notifications
You must be signed in to change notification settings - Fork 4
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 using .A
instead of .toarray()
#61
Conversation
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'm not really getting the motivation/justification for your changes here. Could you please explain the reasoning behind them to me? Thank you!
tests/test_gpcca.py
Outdated
@@ -524,6 +525,7 @@ def test_gpcca_brandts_sparse_is_not_densified(self, P: np.ndarray, sd: np.ndarr | |||
with pytest.raises(ValueError, match=r"Sparse implementation is only available for `method='krylov'`."): | |||
GPCCA(csr_matrix(P), eta=sd, method="brandts").optimize(3) | |||
|
|||
@pytest.mark.skipif(Version(np.__version__) >= Version("2"), reason="Eigenvalue mismatch.") |
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.
So you skip this test if numpy version is >=2? Why is it ok for newer numpy versions to fail this test?
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've been trying to figure out why new numpy
version causes this test to fail, but was unable to figure it out. I will try later do a bisect on the commits, see exactly why, but was thinking in the meantime we could just skip it.
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've reverted this, will leave this for a future PR to investigate.
Regarding the changes in the docs, sphinx was throwing some warning, so I corrected the template and |
There are currently a lot of strange issues:
Honestly, I don't understand what is going on here... @michalk8 maybe you have an idea? |
9d7d858
to
38a5330
Compare
Fixed:
As for the failing tests with In the future, I plan refactor/modernize the installation and building of docs. |
name: ${{ matrix.os }}-${{ matrix.python }}-${{ matrix.slepc }} | ||
env_vars: OS,PYTHON | ||
fail_ci_if_error: false | ||
token: ${{ secrets.CODECOV_TOKEN }} |
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.
@msmdev could you please create and add this token to the repo secrets?
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.
Seems that it was already there in the repo secrets...
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files@@ Coverage Diff @@
## main #61 +/- ##
==========================================
- Coverage 77.80% 70.21% -7.59%
==========================================
Files 7 8 +1
Lines 973 997 +24
Branches 172 173 +1
==========================================
- Hits 757 700 -57
- Misses 135 219 +84
+ Partials 81 78 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Interestingly, now we are getting a different picture regarding the failing test, which was hidden by the seemingly passing MacOS tests:
|
This difference is quite interesting. Maybe it is a result of differences in system architecture? Do you know, on what type of processors the MacOS tests are running: Intel (as Linux) or ARM? |
@michalk8, thank you very much for solving the issues related to outdated runners, dependencies and several other legacy issues! |
No description provided.