-
Notifications
You must be signed in to change notification settings - Fork 829
mdakits are now optional deps #4953
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
Changes from 8 commits
9915e4a
30090f2
b42b815
180be34
913b3f4
ea0dc10
d526b0e
1314d34
c79729d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,14 +36,23 @@ | |
|
|
||
| """ | ||
| import warnings | ||
| from mdahole2.analysis.hole import hole, HoleAnalysis | ||
| from mdahole2.analysis import utils, templates | ||
| from mdahole2.analysis.utils import create_vmd_surface | ||
|
|
||
| wmsg = ( | ||
| "Deprecated in version 2.8.0\n" | ||
| "MDAnalysis.analysis.hole2 is deprecated in favour of the " | ||
| "MDAKit madahole2 (https://www.mdanalysis.org/mdahole2/) " | ||
| "and will be removed in MDAnalysis version 3.0.0" | ||
| ) | ||
| warnings.warn(wmsg, category=DeprecationWarning) | ||
| try: | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure why these are reporting as not covered - the tests for both warnings seem to be passing.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I manually tested everything locally (with and without the optional imports) so I'd say it's probably worth ignoring codecov here. |
||
| from mdahole2.analysis.hole import hole, HoleAnalysis | ||
| from mdahole2.analysis import utils, templates | ||
| from mdahole2.analysis.utils import create_vmd_surface | ||
| except ImportError: | ||
| wmsg = ( | ||
| "Please install the mdahole2 mdakit to use it in MDAnalysis.\n" | ||
| "More details can be found here: " | ||
| "https://www.mdanalysis.org/mdahole2/getting_started.html" | ||
| ) | ||
| warnings.warn(wmsg, category=UserWarning) | ||
| else: | ||
| wmsg = ( | ||
| "Deprecated in version 2.8.0\n" | ||
| "MDAnalysis.analysis.hole2 is deprecated in favour of the " | ||
| "MDAKit madahole2 (https://www.mdanalysis.org/mdahole2/) " | ||
| "and will be removed in MDAnalysis version 3.0.0" | ||
| ) | ||
| warnings.warn(wmsg, category=DeprecationWarning) | ||
Uh oh!
There was an error while loading. Please reload this page.