-
Notifications
You must be signed in to change notification settings - Fork 70
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
added store_onsite_density_matrices option issue atomate2 #671 #925
Conversation
Hi @munrojm, is it possible to take a look at this PR? From our side it is needed to prevent extremely large objects being stored. This field is also automatically excluded by the MP drones. |
Looks fine to me. Once the linting is fixed, I will merge and patch release. |
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 think this is the only change needed! @JonathanSchmidt1
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #925 +/- ##
==========================================
- Coverage 90.54% 90.22% -0.33%
==========================================
Files 139 138 -1
Lines 13203 13161 -42
==========================================
- Hits 11955 11874 -81
- Misses 1248 1287 +39 ☔ View full report in Codecov by Sentry. |
Co-authored-by: Alex Ganose <[email protected]>
Co-authored-by: Alex Ganose <[email protected]>
I added a store_onsite_density_matrices option to
from_vasp_outputs
andfrom_vasp_files
. As a result onsite_density_matrices from the OUTCAR will only be stored in the future if users specifically ask for it.This was added to solve materialsproject/atomate2#671
I have run the pytest test_calculation.py locally and it passed. I also checked that switching the option on and off in the from_vasp_outputs call in the tests adds/removes the onsite_density_matrices from the outcar.
I am bit surprised that the test passed as I would have expected it to fail when the density matrices are missing but maybe that is because the density matrices of the test cases seem to be empty anyway.