Conversation
Codecov Report
@@ Coverage Diff @@
## develop #2940 +/- ##
===========================================
- Coverage 93.01% 93.00% -0.02%
===========================================
Files 187 187
Lines 24940 24895 -45
Branches 3261 3261
===========================================
- Hits 23198 23153 -45
Misses 1694 1694
Partials 48 48
Continue to review full report at Codecov.
|
|
Thank you. Did you manually try building and running the failing tests? |
a615aaf to
e835efa
Compare
e835efa to
e2d9f80
Compare
|
|
||
| @pytest.fixture(scope='module') | ||
| def pca_aligned(u): | ||
| u.transfer_to_memory() |
There was a problem hiding this comment.
I feel this is most efficiently done (and avoids numerous other "transfer_to_memory() calls) if u is loaded in_memory=True to start off with but not sure if there's a reason for this sequential nature of events
There was a problem hiding this comment.
If I remember correctly, in the original issue I couldn't get the code to work even if the test was isolated. It's possible I made a mistake somewhere, but definitely would be worth testing in isolation.
|
@orbeckst yes, I built the package from a new clone |
orbeckst
left a comment
There was a problem hiding this comment.
From my side this looks fine. Thank you @lilyminium
@IAlibay if you have more comments on the transfer_to_memory() then please block the PR.
There was a problem hiding this comment.
I'll temporarily block this to allow for clarification (it's possible I'm just missing something really obvious here).
So the transfer to memory does somehow fix test_given_mean, but it's not exactly clear to me how/why pca_aligned._mean changes on memory transfer.
In fact, in both cases pca._mean is set to a NoneType? Unless I'm missing something obvious, it looks like transferring to memory just ends up providing a pre-aligned trajectory to test_given_mean which renders pca._mean obsolete?
I'm really hoping that I'm missing something obvious, but it looks to me like in all cases the else of this branch is never reached?
mdanalysis/package/MDAnalysis/analysis/pca.py
Lines 219 to 224 in 2c5e385
This would explain why codecov has it as untested? https://codecov.io/gh/MDAnalysis/mdanalysis/src/develop/package/MDAnalysis/analysis/pca.py
Edit:
Obviously this entire question is based on the fact that I assume that test_given_mean should be testing what happens if mean is given and self._calc_mean is True. If that's not the intended purpose then that's fine.
This reverts commit bbc0f3c.
|
As @IAlibay noted the test is a bit meaningless so I've reverted that for now and can fix in a separate PR. |
|
How odd, one of the travis jobs ran for over 50 mins, I've restarted it to see if it's just a bad node. |
|
Thanks for the fix @lilyminium. Note; we'll probably also need to push this to master for 1.0.1. |
|
I'll do the cherry-pick to master. |
|
Fixed in 2ebb052 on master. |
Fixes issue MDAnalysis#2939 ## Work done in this PR - Adds missing file types of testsuite/setup.py (*top, *in, *sdf, and the contents of data/gromacs/gromos54a7_edited.ff/*).
Fixes #2939
Changes made in this Pull Request:
setup.pyI think this is why they're not included in the release. Maybe we should add a note to
datafiles.py?PR Checklist