We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 43298db + 27eae8a commit 387938dCopy full SHA for 387938d
atomate/vasp/database.py
@@ -132,7 +132,8 @@ def extract_from_calcs_reversed(obj_key):
132
# remove the big object from all calcs_reversed
133
# this can catch situations were the drone added the data to more than one calc.
134
for i_calcs in range(len(task_doc["calcs_reversed"])):
135
- del task_doc["calcs_reversed"][i_calcs][obj_key]
+ if obj_key in task_doc["calcs_reversed"][i_calcs]:
136
+ del task_doc["calcs_reversed"][i_calcs][obj_key]
137
return calcs_r_data
138
139
# drop the data from the task_document and keep them in a separate dictionary (big_data_to_store)
0 commit comments