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

Removes deprecated density code #2740

Merged
merged 16 commits into from
Jun 13, 2020
Merged

Conversation

IAlibay
Copy link
Member

@IAlibay IAlibay commented Jun 11, 2020

Towards #2739

Changes made in this Pull Request:

  • Removes density_from_Universe, density_from_PDB, Bfactor2RMSF, BfactorDensityCreator, and notwithin_coordinates_factory
  • Moves _set_user_grid to be a staticmethod of DensityAnalysis
  • Unused tests removed

Todo:

  • Do we need a versionchanged somewhere in the docs?

PR Checklist

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

@codecov
Copy link

codecov bot commented Jun 11, 2020

Codecov Report

Merging #2740 into develop will decrease coverage by 0.06%.
The diff coverage is 87.87%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2740      +/-   ##
===========================================
- Coverage    91.25%   91.19%   -0.07%     
===========================================
  Files          176      176              
  Lines        23967    23798     -169     
  Branches      3153     3134      -19     
===========================================
- Hits         21871    21702     -169     
- Misses        1470     1474       +4     
+ Partials       626      622       -4     
Impacted Files Coverage Δ
package/MDAnalysis/analysis/density.py 80.00% <87.87%> (-9.03%) ⬇️
package/MDAnalysis/core/universe.py 95.88% <0.00%> (-0.46%) ⬇️
package/MDAnalysis/lib/util.py 86.98% <0.00%> (-0.30%) ⬇️
util.py 88.13% <0.00%> (-0.15%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bf74d65...5655051. Read the comment docs.

@IAlibay IAlibay marked this pull request as ready for review June 12, 2020 08:26
@IAlibay
Copy link
Member Author

IAlibay commented Jun 12, 2020

In the interest of not having too many PRs dependent on other PRs, I've reverted from __future__ changes. I can remove them once we deal with the linter.

I've also added a versionchanged to make it clear to anyone looking at the old density code is gone.

Copy link
Member

@orbeckst orbeckst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, minor comments/questions inline.

package/MDAnalysis/analysis/density.py Show resolved Hide resolved
package/MDAnalysis/analysis/density.py Show resolved Hide resolved
package/MDAnalysis/analysis/density.py Show resolved Hide resolved
package/MDAnalysis/analysis/density.py Show resolved Hide resolved
@orbeckst
Copy link
Member

orbeckst commented Jun 13, 2020 via email

@orbeckst orbeckst self-assigned this Jun 13, 2020
@orbeckst orbeckst merged commit 085ac0f into MDAnalysis:develop Jun 13, 2020
@orbeckst
Copy link
Member

Thanks for the work!

PicoCentauri pushed a commit to PicoCentauri/mdanalysis that referenced this pull request Mar 30, 2021
* removes deprecated density code (part of MDAnalysis#2739)
* Removes density_from_Universe, density_from_PDB, Bfactor2RMSF, BfactorDensityCreator, and notwithin_coordinates_factory
* Moves _set_user_grid to be a staticmethod of DensityAnalysis
* Unused tests removed
* Removal of six
* some PEP8 string formatting changes
* Adds a versionchanged for the removal
* Adds changelog entry for deprecated density removal
* Adds _set_user_grid to docs
* Adds return entry
@fiona-naughton fiona-naughton added the deprecation Deprecated functionality to give advance warning for API changes. label Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component-Analysis deprecation Deprecated functionality to give advance warning for API changes. maintainability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants