-
Notifications
You must be signed in to change notification settings - Fork 11
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 python 2 Support in MDPOW #178
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #178 +/- ##
===========================================
- Coverage 73.14% 72.94% -0.20%
===========================================
Files 9 9
Lines 1400 1386 -14
Branches 189 188 -1
===========================================
- Hits 1024 1011 -13
+ Misses 295 294 -1
Partials 81 81
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leave the from . import MODULE
— that's the correct way to import a module inside a package. See other comments inline.
I'll try to get PR #182 and #176 merged (for 0.7.1) as soon as possible so that this can come afterwards and I don't have to do backports of fixes. You'll then also have an updated CHANGES to add your CHANGES in a 0.8.0 section.
# patch paths | ||
elif sys.version_info.major == 2: | ||
G = pickle.load(gsolv.open()) | ||
with open(gsolv, 'rb') as f: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same comment as above
from . import tempdir as td | ||
import mdpow.tests.tempdir as td |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
. import
mdpow/tests/test_fep_script.py
Outdated
from . import tempdir as td | ||
import mdpow.tests.tempdir as td |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
. import
@orbeckst I replaced the imports as instructed, one issue is noticed is with exception syntax in the scripts, should I fix that here or make another pull request? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Somehow the merge/rebase reverted many changes that are in develop. Please check and rebase cleanly against develop.
mdpow/equil.py
Outdated
from . import config as config | ||
from . import forcefields as forcefields |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"as" not needed
doc/sphinx/source/conf.py
Outdated
html_logo = "_static/mdpow-logo.png" | ||
#html_logo = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reverted commits on develop! undo
doc/sphinx/source/conf.py
Outdated
html_favicon = "_static/mdpow.ico" | ||
#html_favicon = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reverted commits on develop! undo
doc/sphinx/source/conf.py
Outdated
'https://gromacswrapper.readthedocs.io/en/latest': None, | ||
'https://gromacswrapper.readthedocs.org/en/latest/': None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reverted commits on develop (I think, check develop) undo?
doc/sphinx/source/index.txt
Outdated
Nevertheless, you should *always* check the topology and runinput | ||
Nevertheless, you should _always_ check the topology and runinput |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reverted commits on develop! undo
doc/sphinx/source/index.txt
Outdated
@@ -141,6 +141,7 @@ For current issues and open feature requests please look through the | |||
fep | |||
utilities | |||
forcefields | |||
tables |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reverted commits on develop! undo
doc/sphinx/source/scripts.txt
Outdated
compound and one solvent. All parameters except the solvent are specified in | ||
the *RUNFILE*. | ||
|
||
Arguments: | ||
|
||
.. option:: RUNFILE | ||
|
||
The runfile :file:`runinput.yml` with all configuration parameters. | ||
|
||
|
||
Options: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
everything: reverted commits on develop! undo
@ALescoulie please ping me when you have addressed the comments and want me to review again. |
@orbeckst I think I addressed the current issues. Sorry about the chaos that is scripts.txt, for some reason a bunch of spaces are being shown as deleted despite me just copying the original. For some reason one of the test_p_transfer tests is failing, but a few threads say it's an error with pandas 1.3.0. edit: I forgot to update my own conda env, works on GitHub actions. |
I removed 2.7 status check requirements from develop. Will finish review tonight (and then hopefully merge). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have to apply the fixes where some commits reverted code on develop. Will check again and then merge.
mdpow/fep.py
Outdated
:members: | ||
:inherited-members: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:members: | |
:inherited-members: | |
:members: | |
:inherited-members: | |
mdpow/forcefields.py
Outdated
#: Solvents available in GROMACS; the keys of the dictionary | ||
#: are the forcefields. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#: Solvents available in GROMACS; the keys of the dictionary | |
#: are the forcefields. | |
#: Solvents available in GROMACS; the keys of the dictionary | |
#: are the forcefields. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more reversals
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more reverts
77a576f
to
82590b9
Compare
- removed Python 2 from setup.py metadata - updated CHANGES
82590b9
to
2d50f75
Compare
remove python 2 * fix Becksteinlab#177 * update setup.py and CHANGES Co-authored-by: ALescoulie <[email protected]> Co-authored-by: Oliver Beckstein <[email protected]>
Removing Python 2 Compatibility
Since we now have a release supporting 2.7 and 3.x we can safely remove support for python 2 for future version. To begin that process I removed some of the ugly patching in the tests, and switched everything to future imports.
Still to do