2
2
3
3
from __future__ import annotations
4
4
5
- import json
6
-
7
5
from dash import Dash
8
6
from dash .html import Div
9
7
13
11
plot_from_table_column ,
14
12
struct_from_scatter ,
15
13
)
16
- from ml_peg .app .utils .build_components import build_weight_components
17
14
from ml_peg .app .utils .load import read_plot
18
15
from ml_peg .calcs .models .models import MODELS
19
16
@@ -63,22 +60,6 @@ def get_app() -> ElementalSlabOxygenAdsorptionApp:
63
60
ElementalSlabOxygenAdsorptionApp
64
61
Benchmark layout and callback registration.
65
62
"""
66
- # Build metric weight components (sliders + inputs) for metrics
67
- with open (DATA_PATH / "elemental_slab_oxygen_adsorption_metrics_table.json" ) as f :
68
- table_json = json .load (f )
69
- metric_columns = [
70
- c ["id" ]
71
- for c in table_json ["columns" ]
72
- if c ["id" ] not in ("MLIP" , "Score" , "Rank" , "id" )
73
- ]
74
-
75
- metric_weights = build_weight_components (
76
- header = "Metric weights" ,
77
- columns = metric_columns ,
78
- input_ids = [f"{ BENCHMARK_NAME } -{ c .replace (' ' , '-' )} " for c in metric_columns ],
79
- table_id = f"{ BENCHMARK_NAME } -table" ,
80
- )
81
-
82
63
return ElementalSlabOxygenAdsorptionApp (
83
64
name = BENCHMARK_NAME ,
84
65
description = (
@@ -88,7 +69,6 @@ def get_app() -> ElementalSlabOxygenAdsorptionApp:
88
69
docs_url = DOCS_URL ,
89
70
table_path = DATA_PATH / "elemental_slab_oxygen_adsorption_metrics_table.json" ,
90
71
extra_components = [
91
- metric_weights ,
92
72
Div (id = f"{ BENCHMARK_NAME } -figure-placeholder" ),
93
73
Div (id = f"{ BENCHMARK_NAME } -struct-placeholder" ),
94
74
],
0 commit comments