Skip to content

Commit

Permalink
v0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
janosh committed Aug 10, 2023
1 parent e43685f commit ae0c2fd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions examples/wrenformer/mat_bench/save_matbench_aflow_labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@
"""


mbbm = MatbenchBenchmark()
benchmark = MatbenchBenchmark()

for idx, task in enumerate(mbbm.tasks, 1):
print(f"\n\n{idx}/{len(mbbm.tasks)}")
for idx, task in enumerate(benchmark.tasks, 1):
print(f"\n\n{idx}/{len(benchmark.tasks)}")
task.load()
df: pd.DataFrame = task.df

if "structure" in df:
df["composition"] = [x.formula for x in df.structure]
df["composition"] = [struct.formula for struct in df.structure]
df["wyckoff"] = [
get_aflow_label_from_spglib(x)
for x in tqdm(df.structure, desc="Getting Aflow Wyckoff labels")
get_aflow_label_from_spglib(struct)
for struct in tqdm(df.structure, desc="Getting Aflow Wyckoff labels")
]
elif "composition" in df:
df["composition"] = [x.formula for x in df.composition]
df["composition"] = [comp.formula for comp in df.composition]
else:
raise ValueError("No structure or composition column found")

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "aviary"
version = "0.1.0"
version = "0.1.1"
description = "A collection of machine learning models for materials discovery"
authors = [{ name = "Rhys Goodall", email = "[email protected]" }]
readme = "README.md"
Expand Down

0 comments on commit ae0c2fd

Please sign in to comment.