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

update IO classes to latest upstream pymatgen #141

Merged
merged 3 commits into from
Jun 8, 2022

Conversation

rkingsbury
Copy link
Contributor

Summary

This PR updates the contents of src/atomate2/common/sets.py, which defines the interface for InputSet and InputGenerator, to match the latest pymatgen. Originally I believe this file was added to atomate2 before that interface was finalized and merged.

We could also remove this file and import the classes directly from pymatgen if desired; I thought there might be a specific desire to have a local copy in the atomate2 repo to facilitate rapid iteration or something.

@utf
Copy link
Member

utf commented Jun 7, 2022

This is fantastic, thanks so much @rkingsbury.

We could also remove this file and import the classes directly from pymatgen if desired; I thought there might be a specific desire to have a local copy in the atomate2 repo to facilitate rapid iteration or something.

The only reason for the duplication is that I was using the classes before your PR was merged in pymatgen. I think it would be best if we used the pymatgen input set and input set generator classes, since they are stable and merged now. Would you mind making that update?

@codecov
Copy link

codecov bot commented Jun 7, 2022

Codecov Report

Merging #141 (e95c50d) into main (9a7c3cc) will decrease coverage by 0.06%.
The diff coverage is 85.71%.

@@            Coverage Diff             @@
##             main     #141      +/-   ##
==========================================
- Coverage   73.20%   73.14%   -0.07%     
==========================================
  Files          50       49       -1     
  Lines        4270     4253      -17     
  Branches      674      672       -2     
==========================================
- Hits         3126     3111      -15     
+ Misses        975      973       -2     
  Partials      169      169              
Impacted Files Coverage Δ
src/atomate2/vasp/jobs/amset.py 0.00% <0.00%> (ø)
src/atomate2/vasp/jobs/elph.py 92.06% <ø> (ø)
src/atomate2/vasp/powerups.py 95.34% <ø> (ø)
src/atomate2/vasp/files.py 92.85% <100.00%> (ø)
src/atomate2/vasp/jobs/base.py 97.77% <100.00%> (ø)
src/atomate2/vasp/jobs/core.py 87.15% <100.00%> (ø)
src/atomate2/vasp/jobs/elastic.py 84.14% <100.00%> (ø)
src/atomate2/vasp/sets/base.py 67.57% <100.00%> (ø)
src/atomate2/vasp/sets/core.py 84.32% <100.00%> (ø)
src/atomate2/vasp/sets/defect.py 100.00% <100.00%> (ø)

@utf
Copy link
Member

utf commented Jun 8, 2022

Great, thank you!

@utf utf merged commit a31b86b into materialsproject:main Jun 8, 2022
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.

2 participants