Skip to content

Commit d12cce0

Browse files
committed
fix for changes to main
1 parent 2c01998 commit d12cce0

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

mlip_testing/app/surfaces/elemental_slab_oxygen_adsorption/app_elemental_slab_oxygen_adsorption.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Run S24 app."""
1+
"""Run elemental_slab_oxygen_adsorption app."""
22

33
from __future__ import annotations
44

@@ -17,11 +17,11 @@
1717
from mlip_testing.calcs.models.models import MODELS
1818

1919
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"
2121

2222

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."""
2525

2626
def register_callbacks(self) -> None:
2727
"""Register callbacks to app."""
@@ -34,7 +34,7 @@ def register_callbacks(self) -> None:
3434

3535
# Assets dir will be parent directory
3636
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"
3838
for struct_file in sorted(structs_dir.glob("*.xyz"))
3939
]
4040

@@ -52,23 +52,23 @@ def register_callbacks(self) -> None:
5252
)
5353

5454

55-
def get_app() -> S24App:
55+
def get_app() -> ElementalSlabOxygenAdsorptionApp:
5656
"""
57-
Get S24 benchmark app layout and callback registration.
57+
Get elemental_slab_oxygen_adsorption benchmark app layout and callback registration.
5858
5959
Returns
6060
-------
61-
S24App
61+
ElementalSlabOxygenAdsorptionApp
6262
Benchmark layout and callback registration.
6363
"""
64-
return S24App(
64+
return ElementalSlabOxygenAdsorptionApp(
6565
name=BENCHMARK_NAME,
66-
title="S24",
66+
title="Elemental Slab Oxygen Adsorption",
6767
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."
7070
),
71-
table_path=DATA_PATH / "s24_metrics_table.json",
71+
table_path=DATA_PATH / "elemental_slab_oxygen_adsorption_metrics_table.json",
7272
extra_components=[
7373
Div(id=f"{BENCHMARK_NAME}-figure-placeholder"),
7474
Div(id=f"{BENCHMARK_NAME}-struct-placeholder"),
@@ -81,9 +81,9 @@ def get_app() -> S24App:
8181
full_app = Dash(__name__, assets_folder=DATA_PATH.parent.parent)
8282

8383
# 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()
8787

8888
# Run app
8989
full_app.run(port=8052, debug=True)

0 commit comments

Comments
 (0)