-
Notifications
You must be signed in to change notification settings - Fork 723
Added parallelization to polymer.PersistenceLength #5074
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
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #5074 +/- ##
========================================
Coverage 93.85% 93.85%
========================================
Files 178 178
Lines 22122 22128 +6
Branches 3129 3129
========================================
+ Hits 20763 20769 +6
Misses 902 902
Partials 457 457 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@talagayev would you be able to look after this PR? You have plenty of experience with parallelization. You can try and find reviewers or you can review yourself. Ultimately, you're acting like an editor and you try to shepherd the PR to completion. If you don't have the bandwidth, please say something and un-assign yourself. Thanks! |
@orbeckst yes I can review and shepherd it and if I have troubles I will probably ask also Yuxuan and Egor for help :) |
@talagayev could you provide an initial review so that @DrDomenicoMarson would have some idea what might need to be done? |
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.
Quick comments: You need to add specific tests for the parallel version. Look into https://github.com/MDAnalysis/mdanalysis/blob/develop/testsuite/MDAnalysisTests/analysis/conftest.py and follow the pattern there. You need to define a client_PersistenceLength
that will be used for the run(..., **client_PersistenceLength)
method.
Then you need to update tests_persistencelength.py to use the new client that you defined. See, for instance,
def test_lineardensity( |
Also include an explicit test for the "parallelizable" attribute. Check existing tests for details (e.g. in test_rms.py or test_lineardensity.py).
Hi, I updated the tests as requested, and added the test for the "parallelizable" attribute. I'm not sure I quite understood 100% of the testing mechanism (as I'm sort of new in such things), but I ran the tests and all passed on my machine. |
Ah sorry for the late reply, had to focus on work last week, so I didn't have time to focus on this PR. @DrDomenicoMarson from the first look it looks correct and you adjusted the tests as @orbeckst suggested. I will run and check everything also locally from my side to see if everything works |
While you were working on this pr did you look at open PR #4871 ? That PR had stalled but if you used anything then we would also add the original PR author. |
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.
Testing looks good, only minor comments.
Looks also good from my side, tests run fine locally. |
Co-authored-by: Rocco Meli <r.meli@bluemail.ch>
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.
@DrDomenicoMarson please include your GH handle in the contributor list for 2.10.0 in CHANGELOG.
Everything else looks good to me! Thank you for the contribution!!
Hi, sorry I didn't check for existing open PR, so I didn't know someone already worked on this! |
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, thank you for your contribution @DrDomenicoMarson !
@talagayev please feel free to squash-merge when all status checks pass. For the squash-merge, rewrite the log message with the Thank you for shepherding the PR to completion! Nice work everyone. |
Thanks! @DrDomenicoMarson |
fix #4671
Changes made in this Pull Request:
PR Checklist
package/CHANGELOG
file updated?package/AUTHORS
? (If it is not, add it!)I haven't added new tests, but I checked that this version pass the relevant tests from the testsuite.
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--5074.org.readthedocs.build/en/5074/