Skip to content

Commit

Permalink
git mv data/{mp-n_elements\<2,mp-elements}.csv (closes #19)
Browse files Browse the repository at this point in the history
  • Loading branch information
janosh committed Feb 12, 2022
1 parent e0560af commit ad6197e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion scripts/fetch_mp_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# %%
df = pd.DataFrame(formulas).rename(columns={"pretty_formula": "formula"})

df.to_csv(f"{ROOT}/data/mp-n_elements<2.csv", index=False)
df.to_csv(f"{ROOT}/data/mp-elements.csv", index=False)


# %%
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate_assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def save_compress_plotly(fig: Figure, filename: str) -> None:


# %% Elemental Plots
mp_formulas = pd.read_csv(f"{ROOT}/data/mp-n_elements<2.csv").formula
mp_formulas = pd.read_csv(f"{ROOT}/data/mp-elements.csv").formula
roost_formulas = pd.read_csv(f"{ROOT}/data/ex-ensemble-roost.csv").composition
df_ptable = pd.read_csv(f"{ROOT}/ml_matrics/elements.csv").set_index("symbol")

Expand Down
2 changes: 1 addition & 1 deletion tests/test_elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
)


formulas_1 = pd.read_csv(f"{ROOT}/data/mp-n_elements<2.csv").formula
formulas_1 = pd.read_csv(f"{ROOT}/data/mp-elements.csv").formula
formulas_2 = pd.read_csv(f"{ROOT}/data/ex-ensemble-roost.csv").composition
df_ptable = pd.read_csv(f"{ROOT}/ml_matrics/elements.csv").set_index("symbol")

Expand Down

0 comments on commit ad6197e

Please sign in to comment.