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

Don't calculate band properties if LORBIT < 11 #783

Merged
merged 3 commits into from
Jul 18, 2023
Merged

Don't calculate band properties if LORBIT < 11 #783

merged 3 commits into from
Jul 18, 2023

Conversation

Andrew-S-Rosen
Copy link
Member

@Andrew-S-Rosen Andrew-S-Rosen commented Jul 16, 2023

I realized the _get_band_properties is always being called on the VASP output to populate the orbital-projected band properties (e.g. d-band center). However, this requires LORBIT >= 11, which is always true for MP calculations but not necessarily in general. I added a simple check so that emmet doesn't error out when LORBIT < 11.

@codecov-commenter
Copy link

codecov-commenter commented Jul 16, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (5270367) 90.95% compared to head (003f3c4) 90.95%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #783   +/-   ##
=======================================
  Coverage   90.95%   90.95%           
=======================================
  Files         137      137           
  Lines       11725    11725           
=======================================
  Hits        10665    10665           
  Misses       1060     1060           
Impacted Files Coverage Δ
emmet-core/emmet/core/vasp/calculation.py 80.13% <ø> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@munrojm munrojm added the release:patch Patch updates label Jul 18, 2023
@munrojm munrojm merged commit b228bc4 into materialsproject:main Jul 18, 2023
13 checks passed
@Andrew-S-Rosen Andrew-S-Rosen deleted the patch-1 branch July 18, 2023 01:53
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

3 participants