Skip to content

Remove save part2#2494

Merged
orbeckst merged 9 commits intoMDAnalysis:developfrom
IAlibay:remove-save-part2
Feb 6, 2020
Merged

Remove save part2#2494
orbeckst merged 9 commits intoMDAnalysis:developfrom
IAlibay:remove-save-part2

Conversation

@IAlibay
Copy link
Member

@IAlibay IAlibay commented Feb 2, 2020

Partly addresses #1745 (completes save() removal with #2487 and #2486 )

Also addresses #2491, since the deprecation was unclear and it seems like there were no releases between the announced deprecation of analysis/hbonds/hbond_analysis.py and now, the deprecation was set as effective v1.0 and set for removal in v2.0 (this is just a placeholder date).

Fixes #2492

Changes made in this Pull Request:

  • Set deprecation date for analysis/hbonds/hbond_analysis.py.
  • Removed save_table from :class:HydrogenBondAnalysis.
  • Removed save_results from :class:HydrogenBondAutoCorrel.
  • Removed filename, store and save_result from :class:PSAnalysis.
  • Deprecation notice for :meth:HydrogenBondAnalysis._reformat_hb has been removed, entire class will be removed in 2.0 (Deprecation of _reformat_hb in hbonds/hbond_analysis.py for v1.0 #2492 )

Things left to do:

  • Confirm the removal date for MDAnalysis/analysis/hbonds/hbond_analysis.

PR Checklist

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

- removes save methods
- depreates hbond_analysis
- removes save method from psa.py
- also minor change to test_hbonds.py
@codecov
Copy link

codecov bot commented Feb 2, 2020

Codecov Report

Merging #2494 into develop will increase coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2494      +/-   ##
===========================================
+ Coverage    90.25%   90.28%   +0.03%     
===========================================
  Files          169      169              
  Lines        23210    23175      -35     
  Branches      3008     3001       -7     
===========================================
- Hits         20948    20924      -24     
+ Misses        1655     1648       -7     
+ Partials       607      603       -4     
Impacted Files Coverage Δ
package/MDAnalysis/analysis/base.py 97.24% <0.00%> (ø) ⬆️
package/MDAnalysis/lib/mdamath.py 93.54% <0.00%> (ø) ⬆️
package/MDAnalysis/lib/util.py 88.56% <0.00%> (ø) ⬆️
package/MDAnalysis/coordinates/TRZ.py 83.64% <0.00%> (ø) ⬆️
package/MDAnalysis/analysis/psa.py 83.68% <0.00%> (+0.63%) ⬆️
package/MDAnalysis/analysis/lineardensity.py 63.30% <0.00%> (ø) ⬆️
package/MDAnalysis/analysis/gnm.py 96.06% <0.00%> (ø) ⬆️
package/MDAnalysis/coordinates/TRJ.py 94.81% <0.00%> (ø) ⬆️
package/MDAnalysis/lib/transformations.py 78.62% <0.00%> (ø) ⬆️
package/MDAnalysis/core/topologyobjects.py 97.87% <0.00%> (ø) ⬆️
... and 9 more

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 009ec22...d410a4a. Read the comment docs.

@orbeckst
Copy link
Member

orbeckst commented Feb 3, 2020

Set removal date for hbonds to 2.0 — that’s the plan.

@orbeckst
Copy link
Member

orbeckst commented Feb 3, 2020

I didn’t check why CI fails. But ping me when you need a review.

@IAlibay
Copy link
Member Author

IAlibay commented Feb 4, 2020

@orbeckst this should be good for review now

@IAlibay IAlibay mentioned this pull request Feb 4, 2020
6 tasks
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.

Minor changes, please – see comments.

Thanks for the work!!

@orbeckst orbeckst merged commit e1f1197 into MDAnalysis:develop Feb 6, 2020
@orbeckst
Copy link
Member

orbeckst commented Feb 6, 2020

Yay, less code!

@IAlibay IAlibay deleted the remove-save-part2 branch June 6, 2020 10:22
@IAlibay IAlibay mentioned this pull request Jun 14, 2020
6 tasks
@fiona-naughton fiona-naughton added maintainability Component-Analysis deprecation Deprecated functionality to give advance warning for API changes. labels 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.

Deprecation of _reformat_hb in hbonds/hbond_analysis.py for v1.0

3 participants