Skip to content
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

MDAnalysis.analysis.hydrogenbonds.hbond_analysis: Implement parallelization or mark as unparallelizable #4664

Closed
marinegor opened this issue Aug 20, 2024 · 0 comments · Fixed by #4718

Comments

@marinegor
Copy link
Contributor

Given a newly implemented parallelization (https://docs.mdanalysis.org/dev/documentation_pages/analysis/parallelization.html), implement it for all classes in analysis.hydrogenbonds.hbond_analysis module. You may use analysis.RMSD in develop as a reference.

You need to add:

  • appropriate implementation of result aggregation for AnalysisBase subclasses in analysis.hydrogenbonds.hbond_analysis module (or explicitly limit available backends if the classes aren't parallelizable)
  • a boilerplate fixture(s) to testsuite/analysis/conftest.py, analogous with existing ones
  • a client_... fixtures to all tests using in testsuite/MDAnalysisTests/analysis/test_hydrogenbond_analysis.py, and modify the way run() method is called
orbeckst added a commit that referenced this issue Oct 7, 2024
…lysis (#4718)

- Fixes #4664 
- Parallelization of the backend support to the class HydrogenBondAnalysis in hbond_analysis.py
- Moved setting up of donors and acceptors from _prepare() to __init__() (needed to make
  parallel processing work)
- Addition of parallelization tests in test_hydrogenbonds_analysis.py and fixtures in conftest.py
- Updated Changelog

---------

Co-authored-by: Yuxuan Zhuang <[email protected]>
Co-authored-by: Oliver Beckstein <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants