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

Fix prev_dir behavior in input set generator of MPGGAStaticMaker #996

Merged
merged 12 commits into from
Sep 29, 2024

Conversation

Andrew-S-Rosen
Copy link
Member

@Andrew-S-Rosen Andrew-S-Rosen commented Sep 28, 2024

Closes #995.

Copy link
Member

@janosh janosh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

glad you caught this @Andrew-S-Rosen. we absolutely need a regression test. this is as a big a gotcha as they come.

maybe we want to pass inherit_incar=False here as well to be explicit. it already defaults to False but that's reliant on a default value two parent classes away in a different repo. better be safe and repeat

default_factory=lambda: MPRelaxSet(force_gamma=True, auto_metal_kpoints=True)

@janosh janosh added fix Bug fix PR ecosystem Issues concerning the larger MP ecosystem vasp Vienna Ab initio Simulation Package labels Sep 29, 2024
@Andrew-S-Rosen
Copy link
Member Author

@janosh: I was also wondering about that --- I had to dig through classes to see what value inherit_incar was being set to just to be sure. I will add inherit_incar=False to the other sets here that way when people make a new one, they will be more likely to ensure that this is still the case regardless of what happens upstream.

Definitely agree about the regression test. I wish I could be more help on this. If nobody is able to chip in, I'll see if I can carve out some time in the next week or two.

@Andrew-S-Rosen
Copy link
Member Author

@janosh: Under-promise and over-delivering over here --- I added a regression test for the prev_dir behavior with MPGGAStaticMaker.

However, what is concerning is that there does not appear to be any pre-existing tests for MPGGAStaticMaker in test/vasp/jobs/test_mp.py so we may only be testing that Maker indirectly. That's for another PR though.

Copy link
Member

@janosh janosh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

excellent, thanks a lot @Andrew-S-Rosen! 👍

Copy link

codecov bot commented Sep 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.01%. Comparing base (96b2b82) to head (428ebd1).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##            main     #996       +/-   ##
==========================================
+ Coverage   4.38%   76.01%   +71.62%     
==========================================
  Files        174      174               
  Lines      12671    12690       +19     
  Branches    1890     1892        +2     
==========================================
+ Hits         556     9646     +9090     
+ Misses     12081     2506     -9575     
- Partials      34      538      +504     
Files with missing lines Coverage Δ
src/atomate2/vasp/jobs/mp.py 92.59% <ø> (+92.59%) ⬆️

... and 156 files with indirect coverage changes

@Andrew-S-Rosen
Copy link
Member Author

Andrew-S-Rosen commented Sep 29, 2024

Would it be possible to get a bugfix release after this PR? I want to reduce potential issues with users trying to reproduce MP settings and getting conflicting results, especially given how hard it is to track down...

@janosh janosh merged commit a24649e into materialsproject:main Sep 29, 2024
10 checks passed
@utf
Copy link
Member

utf commented Sep 30, 2024

v0.0.17 should be released shortly @Andrew-S-Rosen. Thanks for reporting this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ecosystem Issues concerning the larger MP ecosystem fix Bug fix PR vasp Vienna Ab initio Simulation Package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: INCAR parameter inheritance with prev_dir has changed for MPGGAStaticMaker
3 participants