-
Notifications
You must be signed in to change notification settings - Fork 718
feature: IMDReader Integration #4923
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
base: develop
Are you sure you want to change the base?
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.
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.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #4923 +/- ##
===========================================
- Coverage 93.85% 85.84% -8.01%
===========================================
Files 178 179 +1
Lines 22122 22293 +171
Branches 3129 3153 +24
===========================================
- Hits 20763 19138 -1625
- Misses 902 2702 +1800
+ Partials 457 453 -4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Your thoughts on this are appreciated - @orbeckst |
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 the initial PR.
- The first big step is to get the tests running properly so that the CI uses an imdclient without IMDReader. Otherwise we are not sure we're testing the code here.
- Minor initial comments while I skimmed.
- Simple thing: run
black
over all files to get the formatting and ordering of imports right
I set the PR to Work in progress for the time being, just to indicate that we're not yet at the stage where the CI is working. Once the tests run properly, we can update the status. Obviously, this shouldn't discourage anyone from contributing and commenting. |
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.
A first 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.
I read through and nothing jumped out at me that wasn't already mentioned, except that I didn't see these changes in the documentation that was linked. The following needs to be added:
Add doc/sphinx/source/documentation_pages/coordinates/IMD.rst
.. automodule:: MDAnalysis.coordinates.IMD
doc/sphinx/source/documentation_pages/coordinate_modules.rst
coordinates/IMD
doc/sphinx/source/documentation_pages/references.rst
If you use IMD capability...
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.
Sorry for the delay, had a lookover, I will try and push some changes addressing some of these myself also, but would be good to pick up the momentum here again if possible.
@amruthesht do we have a plan for pushing ahead with suggested changes? |
Working on the imdclient repository right now. I had a few small issues there with using the |
1. Moved `parse_host_port` to `IMD.py` and deleted `util.py` 2. Cleaned up `test_imd.py` - changes to `assert_*` functions and simplified non-applicable test to pass automatically
@amruthesht kicking CI here. |
@yuxuanzhuang would you be able to have a run through? |
I will have another look at the PR this week. One immediate thing is to add documentation. Please refer to the comments below.
|
Need to figure out tests also @amruthesht |
I’ve added tests to cover most of the newly introduced code. I had to separate the test for the IMD version into its own file, as it modifies One other point worth discussing is the division of attributes between |
@orbeckst I have updated pins here for 0.2.2 and added the requisite minimum versions where appropriate. I think we might be almost good to go here. |
Fixes #4827
This draft PR addresses the feature request discussed in #4827.
Note:
The
IMDReader
feature which was previously a part of theimdclient
package has been moved intoMDAnalysis
below. Any other modules have been in retained inimdclient
, which has been added as an optional dependency here. We are currently in the process of splitting theimdclient
package as mentioned above. (Issue, PR)Major changes made in this Pull Request:
IMDReader
, other associated base classes and a utility function were added to coordinates in the main package.test-imd.py
*.yaml
filesimdclient
was added as an optional dependencyPR Checklist
package/CHANGELOG
file updated?package/AUTHORS
? (If it is not, add it!)Developers Certificate of Origin
I certify that I can submit this code contribution as described in the Developer Certificate of Origin, under the MDAnalysis LICENSE.
📚 Documentation preview 📚: https://mdanalysis--4923.org.readthedocs.build/en/4923/