Skip to content

Remove as_Universe (Issue #2920)#2922

Merged
lilyminium merged 2 commits intoMDAnalysis:developfrom
IAlibay:issue-2920
Aug 27, 2020
Merged

Remove as_Universe (Issue #2920)#2922
lilyminium merged 2 commits intoMDAnalysis:developfrom
IAlibay:issue-2920

Conversation

@IAlibay
Copy link
Member

@IAlibay IAlibay commented Aug 27, 2020

Fixes #2920

Changes made in this Pull Request:

  • Removes as_Universe from MDAnalysis.core.universe
  • :class:MDAnalysis.analysis.leaflet.LeafletFinder no longer accepts paths to files for the universe argument.

PR Checklist

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

@pep8speaks
Copy link

pep8speaks commented Aug 27, 2020

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

Line 205:1: E402 module level import not at top of file

Comment last updated at 2020-08-27 13:21:23 UTC

lilyminium
lilyminium previously approved these changes Aug 27, 2020
@lilyminium
Copy link
Member

Looks good! Weird that there were no tests for as_Universe.

@IAlibay
Copy link
Member Author

IAlibay commented Aug 27, 2020

Looks good! Weird that there were no tests for as_Universe.

Yeah it looks like it was only covered indirectly via LeafletFinder (that or I missed something and I'm going to wake up to Travis complaining 🤷‍♂️ )

@orbeckst orbeckst mentioned this pull request Aug 27, 2020
3 tasks
@lilyminium
Copy link
Member

    def test_as_Universe():

>       assert mda.as_Universe is mda.core.universe.as_Universe

E       AttributeError: module 'MDAnalysis' has no attribute 'as_Universe'

Oops, grepped in the wrong folder. There is a test...

@lilyminium lilyminium dismissed their stale review August 27, 2020 06:26

Approved w/o due diligence

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.

Please remove test :-)

@codecov
Copy link

codecov bot commented Aug 27, 2020

Codecov Report

Merging #2922 into develop will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2922      +/-   ##
===========================================
+ Coverage    92.96%   93.00%   +0.03%     
===========================================
  Files          187      187              
  Lines        24935    24928       -7     
  Branches      3258     3250       -8     
===========================================
+ Hits         23182    23184       +2     
+ Misses        1705     1696       -9     
  Partials        48       48              
Impacted Files Coverage Δ
package/MDAnalysis/analysis/leaflet.py 96.29% <ø> (-0.05%) ⬇️
package/MDAnalysis/core/universe.py 97.88% <ø> (+0.43%) ⬆️
package/MDAnalysis/__init__.py 91.89% <100.00%> (ø)
package/MDAnalysis/coordinates/base.py 95.12% <0.00%> (+0.48%) ⬆️
package/MDAnalysis/due.py 75.00% <0.00%> (+8.33%) ⬆️

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 45e56e8...2b64626. Read the comment docs.

@lilyminium lilyminium merged commit 3e6b38c into MDAnalysis:develop Aug 27, 2020
PicoCentauri pushed a commit to PicoCentauri/mdanalysis that referenced this pull request Mar 30, 2021
 - Removes `as_Universe` from MDAnalysis.core.universe
 - LeafletFinder no longer accepts paths to files as Universes
@fiona-naughton fiona-naughton added maintainability Component-Core deprecation Deprecated functionality to give advance warning for API changes. labels Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component-Core deprecation Deprecated functionality to give advance warning for API changes. maintainability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

remove universe.as_Universe

4 participants