Skip to content

Commit 44d5133

Browse files
committed
git rm --cached -r data/2022-06-11-from-rhys/
1 parent 827c543 commit 44d5133

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ __pycache__
1212
*.csv.bz2
1313
*.pkl.gz
1414
data/**/raw
15+
data/2022-*
1516

1617
# Weights and Biases logs
1718
wandb/

tests/test_plots.py

+2-9
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
import plotly.graph_objects as go
66
import pytest
77

8-
from matbench_discovery import ROOT
9-
from matbench_discovery.load_preds import df_wbm
8+
from matbench_discovery.load_preds import DATA_PATHS, df_wbm
109
from matbench_discovery.plots import (
1110
AxLine,
1211
Backend,
@@ -16,20 +15,14 @@
1615
rolling_mae_vs_hull_dist,
1716
)
1817

19-
DATA_DIR = f"{ROOT}/data/2022-06-11-from-rhys"
20-
2118
test_dfs: dict[str, pd.DataFrame] = {}
2219
for model_name in ("Wren", "CGCNN", "Voronoi"):
23-
df = pd.read_csv(
24-
f"{DATA_DIR}/{model_name.lower()}-mp-initial-structures.csv", nrows=100
25-
).set_index("material_id")
20+
df = pd.read_csv(DATA_PATHS[model_name], nrows=100).set_index("material_id")
2621

2722
df["e_above_hull_mp"] = df_wbm.e_above_hull_mp2020_corrected_ppd_mp
28-
2923
model_preds = df.filter(like=r"_pred").mean(axis=1)
3024

3125
df["e_above_hull_pred"] = df.e_above_hull_mp + model_preds - df.e_form_target
32-
3326
test_dfs[model_name] = df
3427

3528

0 commit comments

Comments
 (0)