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 TaskDoc.task_type #1128

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion emmet-core/emmet/core/vasp/calc_types/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ def task_type(
except Exception as e:
raise Exception("Couldn't identify total number of kpt labels") from e

if num_kpt_labels > 0:
if num_kpt_labels > 0 or kpts.get("nkpoints", 0) > 0:
# calcs_reversed kpoints are read from vasprun.xml, which
# removes k-points labels --> check that nkpoints > 0
# orig_inputs are read from KPOINTS and retain
# user-input labels --> check num_kpt_labels > 0
calc_type.append("NSCF Line")
else:
calc_type.append("NSCF Uniform")
Expand Down
Loading