-
Notifications
You must be signed in to change notification settings - Fork 865
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
Support parsing of "final_energy" in Q-Chem 6.1.1 #3580
Conversation
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.
thanks @Andrew-S-Rosen! 👍
assert data["final_energy"] == -76.43205015 | ||
qc_out = QCOutput(f"{TEST_FILES_DIR}/qchem/6.1.1.wb97xv.out.gz") | ||
assert qc_out.data["final_energy"] == -76.43205015 | ||
n_vals = sum(1 for val in qc_out.data.values() if val is not None) |
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.
@janosh --- am I understanding correctly that if new properties are added to the .data
attribute that this will fail? That seems like it'd be annoying from a CI perspective. For instance, there are definitely others missing that will need to be patched in future PRs.
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.
that's correct. i was thinking it would be good to force future PRs to look at that test and add a line for any new property
Closes #1264. Requires: materialsproject/pymatgen#3580.
Summary
This PR enables proper parsing of "final_energy" in Q-Chem 6.1.1 with
QCOutput
while maintaining backwards compatability. Partially addresses, but does not fully close, #3578.CC: @samblau, @espottesmith, @rkingsbury
@janosh --- the error seems unrelated and is in
main
.Checklist
ruff
.mypy
.duecredit
@due.dcite
decorators to reference relevant papers by DOI (example)Tip: Install
pre-commit
hooks to auto-check types and linting before every commit: