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

Revert old guessers and tables removal #4752

Merged
merged 12 commits into from
Oct 25, 2024

Conversation

IAlibay
Copy link
Member

@IAlibay IAlibay commented Oct 20, 2024

Fixes #4751 #4753

TODO:

  • Add tests back
  • Add DeprecationWarning for old guessers and tables
  • Make sure tables is still exposed in the right place

PR Checklist

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

Developers certificate of origin


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

@pep8speaks
Copy link

pep8speaks commented Oct 20, 2024

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

Line 28:80: E501 line too long (83 > 79 characters)
Line 29:58: W291 trailing whitespace
Line 43:80: E501 line too long (80 > 79 characters)
Line 101:80: E501 line too long (115 > 79 characters)
Line 136:80: E501 line too long (89 > 79 characters)
Line 141:80: E501 line too long (81 > 79 characters)
Line 162:80: E501 line too long (108 > 79 characters)
Line 177:80: E501 line too long (84 > 79 characters)
Line 197:31: E261 at least two spaces before inline comment
Line 200:1: E302 expected 2 blank lines, found 1
Line 226:52: E261 at least two spaces before inline comment
Line 226:53: E262 inline comment should start with '# '
Line 330:38: E713 test for membership should be 'not in'
Line 453:16: E713 test for membership should be 'not in'

Line 100:1: W293 blank line contains whitespace
Line 110:21: W291 trailing whitespace
Line 156:1: E302 expected 2 blank lines, found 1
Line 158:80: E501 line too long (85 > 79 characters)
Line 164:1: E302 expected 2 blank lines, found 1
Line 171:1: E302 expected 2 blank lines, found 1

Line 35:1: W391 blank line at end of file

Comment last updated at 2024-10-25 19:30:05 UTC

Copy link

codecov bot commented Oct 20, 2024

Codecov Report

Attention: Patch coverage is 84.32836% with 21 lines in your changes missing coverage. Please review.

Project coverage is 93.57%. Comparing base (d2729f7) to head (878aa5c).
Report is 3 commits behind head on develop.

Files with missing lines Patch % Lines
package/MDAnalysis/topology/guessers.py 83.84% 18 Missing and 3 partials ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #4752      +/-   ##
===========================================
- Coverage    93.65%   93.57%   -0.08%     
===========================================
  Files          175      189      +14     
  Lines        21565    22774    +1209     
  Branches      3023     3052      +29     
===========================================
+ Hits         20196    21311    +1115     
- Misses         925     1016      +91     
- Partials       444      447       +3     

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

@IAlibay IAlibay added this to the Release 2.8.0 milestone Oct 24, 2024
@IAlibay IAlibay changed the title [WIP] revert old guessers removal Revert old guessers and tables removal Oct 24, 2024
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.

lgtm, thx

package/MDAnalysis/topology/guessers.py Show resolved Hide resolved
@orbeckst
Copy link
Member

@IAlibay I'll assign the PR to you so you can merge when you need to.

Co-authored-by: Oliver Beckstein <orbeckst@gmail.com>
package/CHANGELOG Outdated Show resolved Hide resolved
The :mod:`MDAnalysis.topology.guessers` module will be removed in release 3.0.0.
It is deprecated in favor of the new Guessers API. See
:mod:`MDAnalysis.guesser.default_guesser` for more details.

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't believe this is correct - removing that line would break the deprecation box (things render fine as-is here: https://mdanalysis--4752.org.readthedocs.build/en/4752/documentation_pages/topology/guessers.html)

package/MDAnalysis/topology/guessers.py Show resolved Hide resolved
Copy link
Member

@lilyminium lilyminium left a comment

Choose a reason for hiding this comment

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

LGTM, although I agree with @yuxuanzhuang's comments. Thanks @IAlibay!

@IAlibay
Copy link
Member Author

IAlibay commented Oct 25, 2024

@yuxuanzhuang I've addressed your review comments so I'll go ahead and dismiss it so we can more rapidly merge things ahead of the release.

@IAlibay IAlibay merged commit d7153b9 into develop Oct 25, 2024
22 of 24 checks passed
@IAlibay IAlibay deleted the revert-topology-guessers-removal branch October 25, 2024 20:45
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.

Revert removal of MDAnalysis.topology.guessers in 2.x branch
5 participants