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

added store_onsite_density_matrices option issue atomate2 #671 #925

Merged
merged 4 commits into from
Feb 15, 2024

Conversation

JonathanSchmidt1
Copy link
Contributor

I added a store_onsite_density_matrices option to from_vasp_outputs and from_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.

@utf
Copy link
Member

utf commented Feb 15, 2024

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.

@munrojm
Copy link
Member

munrojm commented Feb 15, 2024

Looks fine to me. Once the linting is fixed, I will merge and patch release.

Copy link
Member

@utf utf left a 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

emmet-core/emmet/core/vasp/calculation.py Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Feb 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8bfc343) 90.54% compared to head (7c10b87) 90.22%.
Report is 30 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

Co-authored-by: Alex Ganose <utf@users.noreply.github.com>
@munrojm munrojm added the release:patch Patch updates label Feb 15, 2024
Co-authored-by: Alex Ganose <utf@users.noreply.github.com>
@munrojm munrojm merged commit e9689db into materialsproject:main Feb 15, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:patch Patch updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants