1
- """Run S24 app."""
1
+ """Run elemental_slab_oxygen_adsorption app."""
2
2
3
3
from __future__ import annotations
4
4
17
17
from mlip_testing .calcs .models .models import MODELS
18
18
19
19
BENCHMARK_NAME = Path (__file__ ).name .removeprefix ("app_" ).removesuffix (".py" )
20
- DATA_PATH = APP_ROOT / "data" / "surfaces" / "S24 "
20
+ DATA_PATH = APP_ROOT / "data" / "surfaces" / "elemental_slab_oxygen_adsorption "
21
21
22
22
23
- class S24App (BaseApp ):
24
- """S24 benchmark app layout and callbacks."""
23
+ class ElementalSlabOxygenAdsorptionApp (BaseApp ):
24
+ """Elemental slab oxygen adsorption benchmark app layout and callbacks."""
25
25
26
26
def register_callbacks (self ) -> None :
27
27
"""Register callbacks to app."""
@@ -34,7 +34,7 @@ def register_callbacks(self) -> None:
34
34
35
35
# Assets dir will be parent directory
36
36
structs = [
37
- f"assets/surfaces/S24 /{ list (MODELS .keys ())[0 ]} /{ struct_file .stem } .xyz"
37
+ f"assets/surfaces/elemental_slab_oxygen_adsorption /{ list (MODELS .keys ())[0 ]} /{ struct_file .stem } .xyz"
38
38
for struct_file in sorted (structs_dir .glob ("*.xyz" ))
39
39
]
40
40
@@ -52,23 +52,23 @@ def register_callbacks(self) -> None:
52
52
)
53
53
54
54
55
- def get_app () -> S24App :
55
+ def get_app () -> ElementalSlabOxygenAdsorptionApp :
56
56
"""
57
- Get S24 benchmark app layout and callback registration.
57
+ Get elemental_slab_oxygen_adsorption benchmark app layout and callback registration.
58
58
59
59
Returns
60
60
-------
61
- S24App
61
+ ElementalSlabOxygenAdsorptionApp
62
62
Benchmark layout and callback registration.
63
63
"""
64
- return S24App (
64
+ return ElementalSlabOxygenAdsorptionApp (
65
65
name = BENCHMARK_NAME ,
66
- title = "S24 " ,
66
+ title = "Elemental Slab Oxygen Adsorption " ,
67
67
description = (
68
- "Performance in predicting adsorption energies for 24 "
69
- "molecule-surface combinations ."
68
+ "Performance in predicting adsorption energies of oxygen "
69
+ "on elemental slabs ."
70
70
),
71
- table_path = DATA_PATH / "s24_metrics_table .json" ,
71
+ table_path = DATA_PATH / "elemental_slab_oxygen_adsorption_metrics_table .json" ,
72
72
extra_components = [
73
73
Div (id = f"{ BENCHMARK_NAME } -figure-placeholder" ),
74
74
Div (id = f"{ BENCHMARK_NAME } -struct-placeholder" ),
@@ -81,9 +81,9 @@ def get_app() -> S24App:
81
81
full_app = Dash (__name__ , assets_folder = DATA_PATH .parent .parent )
82
82
83
83
# Construct layout and register callbacks
84
- s24_app = get_app ()
85
- full_app .layout = s24_app .layout
86
- s24_app .register_callbacks ()
84
+ elemental_slab_oxygen_adsorption_app = get_app ()
85
+ full_app .layout = elemental_slab_oxygen_adsorption_app .layout
86
+ elemental_slab_oxygen_adsorption_app .register_callbacks ()
87
87
88
88
# Run app
89
89
full_app .run (port = 8052 , debug = True )
0 commit comments