-
Notifications
You must be signed in to change notification settings - Fork 667
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
ClusteringMethods don't need to return details #2575
Comments
Hi @lilyminium I would want to take this one! |
@orbeckst sure, thank you! |
@MDAnalysis/gsoc-mentors could you please review my PR? Thanks! |
Hi, @lilyminium I implemented the suggested fix but 8 out of 12 tests are failing! |
Hi! @lilyminium @orbeckst |
@kpiyush04, there is already a PR by @shfrz aiming to deal with this issue (#2585). I would suggest possibly going for a separate GSOC starter issue as #2585 will be prioritised. If the PR stalls then it will be closed and we will look for alternatives. |
ok thanks a lot |
Fixes issue #2575 ## Work done in this PR: Here the always-empty `details` dictionary which used to be returned by ClusterMethods has been removed. ## Files changed - ClusterMethods.py (removed details). - test_encore.py (removed details). - cluster.py (removed details). - AUTHORS and CHANGELOG updated accordingly.
Expected behavior
Everything returned by
ClusteringMethod.__call__
contains information that is used.Actual behavior
ClusteringMethod.__call__
returnsclusters, details
.details
is always an empty dictionary. It's not used bycluster
and is not even in the documentation:mdanalysis/package/MDAnalysis/analysis/encore/clustering/ClusteringMethod.py
Lines 77 to 91 in 9bcf6f4
The documentation is also inaccurate:
clusters
is an array of the centroid frame indices of length #elements, as returned byencode_centroid_info
:mdanalysis/package/MDAnalysis/analysis/encore/clustering/ClusteringMethod.py
Lines 57 to 66 in 9bcf6f4
Code to reproduce the behavior
As shown below,
cluster
does not use the emptydetails
dictionary.mdanalysis/package/MDAnalysis/analysis/encore/clustering/cluster.py
Lines 234 to 235 in 9bcf6f4
Currently version of MDAnalysis
python -c "import MDAnalysis as mda; print(mda.__version__)"
) 0.20.2-devpython -V
)?Suggested fix
Remove
details
from all theClusteringMethod
s and update the documentation. Run the tests to make sure it doesn't affect anything else.The text was updated successfully, but these errors were encountered: