-
Notifications
You must be signed in to change notification settings - Fork 653
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
Implement iterative average structure (Issue#2039) #4524
Conversation
Hello @leonwehrhan! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2024-03-29 18:38:13 UTC |
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.
Hello there first time contributor! Welcome to the MDAnalysis community! We ask that all contributors abide by our Code of Conduct and that first time contributors introduce themselves on GitHub Discussions so we can get to know you. You can learn more about participating here. Please also add yourself to package/AUTHORS
as part of this PR.
Linter Bot Results:Hi @leonwehrhan! Thanks for making this PR. We linted your code and found the following: Some issues were found with the formatting of your code.
Please have a look at the Please note: The |
Hello @leonwehrhan! Welcome to MDAnalysis! Please add #2039 directly after "Fixes" so the issue will be successfully closed after this PR is merged. Feel free to ping us when you feel it's ready for review :) |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #4524 +/- ##
===========================================
- Coverage 93.65% 93.47% -0.18%
===========================================
Files 168 180 +12
Lines 21216 22319 +1103
Branches 3908 3913 +5
===========================================
+ Hits 19870 20863 +993
- Misses 888 996 +108
- Partials 458 460 +2 ☔ View full report in Codecov by Sentry. |
0eb46ee
to
1a13df7
Compare
Hello @yuxuanzhuang, I think the PR is ready for a review. Could you maybe give some guidance on how to resolve the failed automatic checks? I am not sure how to tackle the issue with the mypy linter, as my local mypy does not see any issues with the files I have touched. Also, my tests should cover every line of new code (codecov/patch 100%) so I do not know why the codecov/project test failed. Thank you very much! |
Hi, there are a few aspects up for discussion (also pinging @lilyminium, since you added the
Don't worry about the failing of linter and main_tests (ubuntu-latest, 3.12, true, true), they are unrelated issues. |
Hi @yuxuanzhuang, thank you very much for the review! I have updated the code and adressed your concerns as follows:
Other things I have changed:
|
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.
Looks great! Just a few comments on the documentation side.
And please fix pep8 issue reported above.
I think this function should actually be put inside the The other issue is the documentation is not showing up on the webpage (there's a preview you can find above https://mdanalysis--4524.org.readthedocs.build/en/4524/documentation_pages/analysis/rms.html). You need to add explicitly Additionally, please leave the review unresolved so that the reviewer can determine whether the issue has indeed been addressed. |
I have moved the function to |
@yuxuanzhuang I added you as the person responsible for the PR. @leonwehrhan I un-assigned you because we use the "Assignee" field to indicate who from the developer team manages review and merge. |
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.
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.
Looking good but we need a convergence check and we need to handle text output via logging.
@yuxuanzhuang @orbeckst I have made the requested changes. |
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.
Thanks for making the changes.
My main comment is for the tests: please split your tests so that you always just test one thing as this will help tremendously in debugging if anything ever fails. Please see the comments inline.
@orbeckst I have changed the tests, so that every testing method only contains one call of |
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.
Thanks for changing the tests. Just found two small things. Almost there!!
Head branch was pushed to by a user without write access
@orbeckst @yuxuanzhuang the requested changes are pushed, but it looks like auto-merge has been disabled by my commit because I do not have write access. Could one of you do the merge? |
Auto-merge just means that the merge will be performed when all requirements are met
It's just a short cut for maintainers to essentially "queue up" the merge. Let me have a quick look. |
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.
Please check the imports that I flagged.
In order to remove them you can simply use my suggestions in the GH interface.
Thanks for the clarification! I thought I might have unintentionally halted the merge process :) I will adress your changes now. |
Co-authored-by: Oliver Beckstein <[email protected]>
Head branch was pushed to by a user without write access
Co-authored-by: Oliver Beckstein <[email protected]>
@orbeckst I have comitted the changes via your comment. The reason for these imports being there was that I originally implemented the function in |
ok. the other test failure is not due to your stuff, see #4540 |
Thank you for your contribution! 🎉 |
Thanks a lot for guiding me through the PR! |
Congrats! @leonwehrhan |
Fixes #2039
Changes made in this Pull Request:
PR Checklist
Developers certificate of origin
📚 Documentation preview 📚: https://mdanalysis--4524.org.readthedocs.build/en/4524/