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

upgrade DensityAnalysis to use AnalysisBase #2502

Closed
orbeckst opened this issue Feb 4, 2020 · 1 comment · Fixed by #2537
Closed

upgrade DensityAnalysis to use AnalysisBase #2502

orbeckst opened this issue Feb 4, 2020 · 1 comment · Fixed by #2537

Comments

@orbeckst
Copy link
Member

orbeckst commented Feb 4, 2020

Expected behavior

The density analysis in analysis.density should implement the common analysis API, namely be based on analysis.base.AnalysisBase.

Actual behavior

The density generation code in analysis.density consist of a rag-tag of idiosyncratic functions with no common interface.

Currently version of MDAnalysis

current develop (> 0.20)

@orbeckst
Copy link
Member Author

orbeckst commented Feb 4, 2020

As stated in #1463 (comment), @nawtrey added a parallel DensityAnalysis in MDAnalysis/pmda#93 which can be back-ported as a serial version.

orbeckst added a commit that referenced this issue Feb 18, 2020
- close #2502
- DensityAnalysis is based on @nawtrey's pmda.density.DensityAnalysis
- added tests (based on the Test_density_from_universe): both give the same
  answer as they pass the same tests
- update docs (also write ångström consistently throughout)
- update CHANGELOG
@orbeckst orbeckst mentioned this issue Feb 18, 2020
4 tasks
@orbeckst orbeckst self-assigned this Feb 18, 2020
@orbeckst orbeckst added this to the 1.0 milestone Feb 18, 2020
orbeckst added a commit that referenced this issue Feb 19, 2020
- close #2502
- DensityAnalysis is based on @nawtrey's pmda.density.DensityAnalysis
  but replace _reduce with accumulation in _single_frame
- added tests (based on the Test_density_from_universe): both give the same
  answer as they pass the same tests;
  test specific exceptions in DensityAnalysis
- update docs (also write ångström consistently throughout)
- update CHANGELOG
orbeckst added a commit that referenced this issue Feb 20, 2020
- close #2502
- DensityAnalysis is based on @nawtrey's pmda.density.DensityAnalysis
  but replace _reduce with accumulation in _single_frame
- added tests (based on the Test_density_from_universe): both give the same
  answer as they pass the same tests;
  test specific exceptions in DensityAnalysis
- update docs (also write ångström consistently throughout)
- update CHANGELOG
@wvdtoorn wvdtoorn mentioned this issue Mar 12, 2020
4 tasks
IAlibay pushed a commit that referenced this issue Mar 15, 2020
Partially fixes #2502 (completes PR #2537)

## PR contents:

This PR by @wvandertoorn finalises the work done as part of #2537
Key commits:
  - Fixes docstring (adds .. deprecated information).
  - Adds back :class:`TestGridImport`.
  - Reduces precision matching of `test_density_from_PDB`.
  - CHANGELOG and AUTHORS updated accordingly.
IAlibay added a commit that referenced this issue Mar 19, 2020
Fixes #2502 

## PR overview:
Adds the new AnalysisBase DensityAnalysis class.

## PR details
  - A new Density class based on AnalysisBase was created.
  - The old density_from_Universe, density_from_PDB and associated code was deprecated, with removal set for v2.0.
  - Tests were added to cover some of the untested parts of the code.
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.

1 participant