-
Notifications
You must be signed in to change notification settings - Fork 48
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
NEBRecord can return final_chain now. #771
Conversation
@@ -400,6 +400,7 @@ def submit_singlepoints( | |||
opt_spec = neb_orm.specification.optimization_specification.model_dict() | |||
qc_spec = opt_spec["qc_specification"] | |||
qc_spec["driver"] = "hessian" | |||
service_state.iteration = -1 |
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.
This is my only concern. This could require a database migration, but I think you are the only one using NEB for now. So it might be safe to ignore that
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.
Let me find a better way that can avoid a database migration.
neb_result_id = 0 | ||
energy = -9999999 | ||
for sp in singlepoints[max(singlepoints.keys())]: | ||
if sp.properties["current energy"] > energy: | ||
energy = sp.properties["current energy"] | ||
neb_result_id = sp.molecule_id |
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.
I think could be made simpler:
max_sp = singlepoints[max_singlepoints.keys()]
sp_energies = [(sp.properties["current_energy"], sp.molecule_id) for sp in max_sp]
energy, neb_result_id = max(sp_energies)
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.
It is fixed now.
Description
NEBRecord can return a list of
SinglepointRecord
instances that correspond to the chain from the last NEB iteration. If optimization of the guessed transition state structure (neb result) is requested, itsSinglepointRecord
with the Hessian is saved in theNEBSinglepoint
with a key value of -1.test_full_neb.py
has been updated.Changelog description
record_models.py
,record_socket.py
, andtest_full_neb.py
for the NEB service were updated.Status