You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## 2024-05-19 - Caching YAML Load for Model Parsing
2
+
**Learning:**`yaml.safe_load` on large configuration files like `models.yml` is significantly slower than parsing JSON or doing other basic IO. It can become a bottleneck when called repeatedly throughout an application's lifecycle (e.g., getting subsets of models, instantiating apps).
3
+
**Action:** Always memoize or `@lru_cache` functions that load static, read-only configuration files (like `models.yml`) to prevent repeated disk I/O and parsing overhead.
Copy file name to clipboardExpand all lines: docs/source/user_guide/benchmarks/surfaces.rst
+47Lines changed: 47 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,6 +102,7 @@ Reference data:
102
102
* Same as input data
103
103
* PBE-D3(BJ), MPRelaxSet settings
104
104
105
+
105
106
Elemental Slab Oxygen Adsorption
106
107
================================
107
108
@@ -184,3 +185,49 @@ Reference data:
184
185
* Taken from the SI of the publication above (as the main text of the publication discusses mixed levels of theory). Values from the "Medium algorithm" are used in order to be consistent with the structures.
185
186
186
187
* PBE without dispersion
188
+
189
+
190
+
Graphene Wetting Under Strain
191
+
=============================
192
+
193
+
Summary
194
+
-------
195
+
196
+
Performance in predicting adsorption energies for a water molecule on graphene under varying strain conditions.
197
+
198
+
Metrics
199
+
-------
200
+
201
+
MAE of adsorption energies
202
+
203
+
For each combination of water molecule orientation, water-graphene distance, and strain
204
+
condition, the adsorption energy is calculated by taking the difference between the
205
+
energy of the combined water + graphene system and the sum of individual water and
206
+
graphene energies. This is compared to the reference adsorption energy, calculated in the
207
+
same way.
208
+
209
+
MAE of binding energies & lengths
210
+
211
+
The adsorption energies calculated above are fitted to Morse potentials, to obtain an
212
+
effective binding energy and binding length (i.e. minimum of adsorption energy curve) for
213
+
each strain condition. This is compared to the reference binding energy & length,
214
+
calculated in the same way.
215
+
216
+
Computational cost
217
+
------------------
218
+
219
+
Very low: tests are likely to take less than a minute to run on CPU.
220
+
221
+
Data availability
222
+
-----------------
223
+
224
+
Input data:
225
+
226
+
* Structures were taken from:
227
+
228
+
* D. W. Lim, X. R. Advincula, W. C. Witt, F. L. Thiemann, C. Schran, “Revealing Strain Effects on the Graphene-Water Contact Angle Using a Machine Learning Potential,” *awaiting publication* (arXiv:2601.20134)
0 commit comments