-
Notifications
You must be signed in to change notification settings - Fork 13
merge LinkFinder to MetcalfScoring class #248
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
Conversation
| assert isinstance(mc.metcalf_mean, np.ndarray) | ||
| assert isinstance(mc.metcalf_std, np.ndarray) | ||
| assert mc.metcalf_mean.shape == (4, 4) # (n_strains+1 , n_strains+1) | ||
| assert mc.metcalf_mean.shape == (4, 4) |
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.
| assert mc.metcalf_mean.shape == (4, 4) |
This is repeated twice, maybe you wanted to assert metcalf_std shape?
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.
Good catch! Indeed, it should be metcalf_std.
| assert isinstance(mc.metcalf_mean, np.ndarray) | ||
| assert isinstance(mc.metcalf_std, np.ndarray) | ||
| assert mc.metcalf_mean.shape == (4, 4) # (n_strains+1 , n_strains+1) | ||
| assert mc.metcalf_mean.shape == (4, 4) |
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.
Same as above, this is repeated twice
| assert isinstance(mc.metcalf_mean, np.ndarray) | ||
| assert isinstance(mc.metcalf_std, np.ndarray) | ||
| assert mc.metcalf_mean.shape == (4, 4) # (n_strains+1 , n_strains+1) | ||
| assert mc.metcalf_mean.shape == (4, 4) |
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.
Same as above, this is repeated twice
3f8bbdd to
094203b
Compare
3a92298 to
89aa35e
Compare
094203b to
9bd9d1a
Compare
89aa35e to
145bd22
Compare
Merge activity
|
The actual role of LinkFinder is to calculate metcalf score, so it makes more sense to merge its functions to MetcalfScoring class
caplog cannot capture all logs, so remove the assertions.
This option is much faster and easier to control the group of tests for same worker.
3974c23 to
d13d883
Compare
The actual role of
LinkFinderis to calculate and store metcalf scores. This PR merges these roles toMetcalfScoringclass, which will increase the clarity of the scoring process.Major changes:
To make unit tests work:
remove
unit/conftest.pythat has one temporary root dir for all tests. Now you have to create temporary root dir only in the places that need it, which makes unit tests indepdent with each other in the parallel testing.change pytest xdist from
--dist loadscopeto--dist loadgroup, which is much faster for parallel testing and easier to control the group of tests for same worker..