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

Python update #170

Merged
merged 66 commits into from
Jul 30, 2021
Merged

Python update #170

merged 66 commits into from
Jul 30, 2021

Conversation

ALescoulie
Copy link
Contributor

New draft of MDPOW upgrade to python 3 with changes suggested by @orbeckst with recent commits from @VOD555. Made some changes compared to previous pull request, in particular removing extraneous style updates to improve reviewing process and separating and labeling commits.

  1. Updated tests to avoid reading errors when opening pickle file. Also replaced outdated yield tests.
  2. Updated ci workflow to test python 3.8.
  3. Replaced outdated import statements. in particular substituting cPickle for six.load.cPiclke.
  4. Replaced outdated merge_dicts function in config.py with recursive method that works in python 2 and Added deepcopy method in fep.py with method that works in python 3.

Repeat of #166

@codecov
Copy link

codecov bot commented Jul 30, 2021

Codecov Report

Merging #170 (0edb862) into develop (d279f50) will increase coverage by 0.54%.
The diff coverage is 63.49%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #170      +/-   ##
===========================================
+ Coverage    68.43%   68.98%   +0.54%     
===========================================
  Files            9        9              
  Lines         1375     1396      +21     
  Branches       166      190      +24     
===========================================
+ Hits           941      963      +22     
  Misses         363      363              
+ Partials        71       70       -1     
Impacted Files Coverage Δ
mdpow/forcefields.py 85.54% <ø> (ø)
mdpow/run.py 62.35% <25.00%> (ø)
mdpow/fep.py 59.37% <53.57%> (+0.56%) ⬆️
mdpow/equil.py 80.53% <62.50%> (+0.22%) ⬆️
mdpow/restart.py 66.66% <66.66%> (+2.44%) ⬆️
mdpow/config.py 72.18% <84.21%> (+1.08%) ⬆️
mdpow/filelock.py 90.00% <100.00%> (ø)
... and 1 more

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 d279f50...0edb862. Read the comment docs.

@orbeckst orbeckst self-requested a review July 30, 2021 01:20
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.

Excellent work! Thank you for bringing MDPOW to the present, @ALescoulie .

@orbeckst
Copy link
Member

I'll just wait for the CI before squash-merging.

The mdpow scripts should now work under Python 3, too, but because we don't have tests that's still something to be seen.

@orbeckst orbeckst added this to the 0.7 milestone Jul 30, 2021
@orbeckst orbeckst linked an issue Jul 30, 2021 that may be closed by this pull request
3 tasks
@orbeckst orbeckst merged commit 4d2498b into Becksteinlab:develop Jul 30, 2021
@orbeckst
Copy link
Member

It is done, hooray!

@orbeckst
Copy link
Member

Congratulations @ALescoulie !

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.

support Python 3
2 participants