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.density' parallelization #4729

Draft
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

talagayev
Copy link
Member

@talagayev talagayev commented Oct 8, 2024

Fixes #4677 attempt

Changes made in this Pull Request:

  • added backends and aggregators to DensityAnalysis in analysis.density
  • added client_DensityAnalysis in conftest.py
  • added client_DensityAnalysis to the tests in test_density.py

Here again I am not sure for this case, since the Error message:

AttributeError: 'DensityAnalysis' object has no attribute '_grid' appears in the tests and I am not sure if moving _grid and all the code necessary for it from _prepare to __init__ will fix the case like it was the case in #4718

PR Checklist

  • Tests?
  • Docs?
  • CHANGELOG updated?
  • Issue raised/referenced?

Developers certificate of origin


📚 Documentation preview 📚: https://mdanalysis--4729.org.readthedocs.build/en/4729/

added backend and aggregator
Added client_DensityAnalysis
Added  client_DensityAnalysis to tests
@pep8speaks
Copy link

pep8speaks commented Oct 8, 2024

Hello @talagayev! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 402:1: W293 blank line contains whitespace
Line 406:1: W293 blank line contains whitespace
Line 495:9: E122 continuation line missing indentation or outdented
Line 495:42: E231 missing whitespace after ','
Line 497:1: W293 blank line contains whitespace

Line 148:1: W293 blank line contains whitespace

Line 384:80: E501 line too long (83 > 79 characters)
Line 396:80: E501 line too long (87 > 79 characters)

Comment last updated at 2024-10-10 00:35:03 UTC

Copy link

github-actions bot commented Oct 8, 2024

Linter Bot Results:

Hi @talagayev! Thanks for making this PR. We linted your code and found the following:

Some issues were found with the formatting of your code.

Code Location Outcome
main package ⚠️ Possible failure
testsuite ⚠️ Possible failure

Please have a look at the darker-main-code and darker-test-code steps here for more details: https://github.com/MDAnalysis/mdanalysis/actions/runs/11265261686/job/31326801780


Please note: The black linter is purely informational, you can safely ignore these outcomes if there are no flake8 failures!

@yuxuanzhuang yuxuanzhuang self-requested a review October 10, 2024 00:07
Copy link

codecov bot commented Oct 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.53%. Comparing base (740e74e) to head (d335131).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #4729      +/-   ##
===========================================
- Coverage    93.55%   93.53%   -0.02%     
===========================================
  Files          173      185      +12     
  Lines        21463    22534    +1071     
  Branches      3987     3988       +1     
===========================================
+ Hits         20080    21078     +998     
- Misses         929     1002      +73     
  Partials       454      454              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yuxuanzhuang
Copy link
Contributor

Three aspects in my fix.

@orbeckst
Copy link
Member

@yuxuanzhuang could you please raise issues for the updates to the parallelization documentation (#4729 (comment)) — I think that's very important to make clear, given that we are now repeatedly running in these issues. Thank you!

@marinegor
Copy link
Contributor

@yuxuanzhuang thanks, the illustration is indeed wrong, as well as the accompanying text. I fixed them in #4760

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MDAnalysis.analysis.density: Implement parallelization or mark as unparallelizable
5 participants