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

remove universe.as_Universe #2920

Closed
2 of 3 tasks
orbeckst opened this issue Aug 27, 2020 · 2 comments · Fixed by #2922
Closed
2 of 3 tasks

remove universe.as_Universe #2920

orbeckst opened this issue Aug 27, 2020 · 2 comments · Fixed by #2922
Assignees
Labels
deprecation Deprecated functionality to give advance warning for API changes. Difficulty-easy remove-2.0 deprecated in 1.0 and to be removed in 2.0
Milestone

Comments

@orbeckst
Copy link
Member

orbeckst commented Aug 27, 2020

universe.as_Universe is not really needed

# TODO: what is the point of this function???
def as_Universe(*args, **kwargs):
and can be removed.

EDIT: @IAlibay found in PR #2922 that LeafletFinder is also affected and will not anymore accept a filename as input

  • remove for 2.0.0
  • deprecate as_Universe in 1.0.1 (see PR Backport 1.0.1 #2798 )
  • deprecate filename argument for LeafletFinder in 1.0.1
@orbeckst orbeckst added Difficulty-easy deprecation Deprecated functionality to give advance warning for API changes. remove-2.0 deprecated in 1.0 and to be removed in 2.0 labels Aug 27, 2020
@orbeckst orbeckst added this to the 2.0 milestone Aug 27, 2020
orbeckst added a commit that referenced this issue Aug 27, 2020
- see #2920
- add deprecation note
- add test
- update CHANGELOG for 1.0.1
@IAlibay
Copy link
Member

IAlibay commented Aug 27, 2020

I think the only use case of as_Universe is LeafletFinder, which to be honest is strange behaviour for MDAnalysis as a whole (i.e. we don't usually pass paths to files to analysis classes). Unless there's any objections, I'd suggest just making LeafletFinder's universe argument accept solely Universes.

orbeckst added a commit that referenced this issue Aug 27, 2020
- see #2920
- add deprecation note
- add test
- update CHANGELOG for 1.0.1
orbeckst added a commit that referenced this issue Aug 27, 2020
- see #2920
- add deprecation note to as_Universe
- add deprecation notice to LeafletFinder: filename instead of Universe will be removed
  (uses as_Universe so users will see the DeprecationWarning from as_Universe)
- add test
- update CHANGELOG for 1.0.1
@orbeckst orbeckst self-assigned this Aug 27, 2020
@orbeckst
Copy link
Member Author

Thanks for looking into what is affected. I added a deprecation note to LeafletFinder to the backport.

orbeckst added a commit that referenced this issue Aug 27, 2020
- see #2920
- add deprecation note to as_Universe
- add deprecation notice to LeafletFinder: filename instead of Universe will be removed
  (uses as_Universe so users will see the DeprecationWarning from as_Universe)
- add test
- update CHANGELOG for 1.0.1
lilyminium pushed a commit that referenced this issue Aug 27, 2020
 - Removes `as_Universe` from MDAnalysis.core.universe
 - LeafletFinder no longer accepts paths to files as Universes
PicoCentauri pushed a commit to PicoCentauri/mdanalysis that referenced this issue Mar 30, 2021
 - Removes `as_Universe` from MDAnalysis.core.universe
 - LeafletFinder no longer accepts paths to files as Universes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deprecation Deprecated functionality to give advance warning for API changes. Difficulty-easy remove-2.0 deprecated in 1.0 and to be removed in 2.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants