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

Conversation

esoteric-ephemera
Copy link
Collaborator

Reopen #1127, had wrong branch. Minor bug where TaskDoc.task_type is incorrectly determined for older NSCF line calcs

In TaskDocument, the orig_inputs are used to determine the task_type. The KPOINTS in orig_inputs retain user-input labels, and the NSCF line check currently only looks for these being non-empty

In TaskDoc, the task_type is determined from calcs_reversed.0.input, failing that, input, and failing that, orig_inputs. Both calcs_reversed.0.input and input read KPOINTS from vasprun.xml, which may have labels removed (may have been an issue with older parsed tasks).

@esoteric-ephemera esoteric-ephemera merged commit 6c3fef0 into materialsproject:main Oct 10, 2024
2 of 3 checks passed
@esoteric-ephemera esoteric-ephemera deleted the fix-task-type branch October 11, 2024 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant