Skip to content

Commit d1a9ed8

Browse files
committed
Refactor OC157 analysis
1 parent 19e051c commit d1a9ed8

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

mlip_testing/analysis/OC157/analyse_OC157.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,9 @@ def ranking_error(relative_energies: dict[str, list]) -> dict[str, float]:
165165
return results
166166

167167

168+
@pytest.fixture
168169
@build_table(filename=OUT_PATH / "oc157_metrics_table.json")
169-
def test_oc157(
170+
def metrics(
170171
oc157_mae: dict[str, float], ranking_error: dict[str, float]
171172
) -> dict[str, dict]:
172173
"""
@@ -189,3 +190,15 @@ def test_oc157(
189190
"Mean Absolute Error": oc157_mae,
190191
"Ranking Error": ranking_error,
191192
}
193+
194+
195+
def test_oc157(metrics: dict[str, dict]) -> None:
196+
"""
197+
Run OC157 test.
198+
199+
Parameters
200+
----------
201+
metrics
202+
All OC157 metrics.
203+
"""
204+
return

0 commit comments

Comments
 (0)