-
Notifications
You must be signed in to change notification settings - Fork 868
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
Add tests for the New Vasp input sets #3576
Conversation
Hi @utf, I have a quick question here: is there any particular reason for skipping pymatgen/pymatgen/io/vasp/sets.py Line 2409 in 7e0c8f4
pymatgen/pymatgen/io/vasp/sets.py Line 2482 in 7e0c8f4
The default settings in pymatgen/pymatgen/io/vasp/sets.py Line 2559 in 7e0c8f4
|
@Zhuoying, I didn't change the behaviour of the input sets. I just updated the implementation. E.g., for the two input sets you mentioned, see the old implementation where ENCUT was also removed from the input set.
I would highlight that the point of these tests is to ensure that the output of the new input set implementation is the same as the output of the old implementations. |
thanks @Zhuoying! more tests are always appreciated! is this ready for review? |
@janosh Yeah, it is ready to review now. Pytest code coverage for
|
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.
thanks a lot @Zhuoying! 👍 i feel safer already with this new test coverage (no joke) 😄
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.
general hint: no need to check coverage files into version control.
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.
Thanks for the hint. I guess I did it unconsciously...
Yes, thanks a lot for these efforts! |
This is great, thanks very much @Zhuoying |
Summary
Major changes:
Todos
Checklist
ruff
.mypy
.duecredit
@due.dcite
decorators to reference relevant papers by DOI (example)Tip: Install
pre-commit
hooks to auto-check types and linting before every commit: