Skip to content

Commit ae0c2fd

Browse files
committed
v0.1.1
1 parent e43685f commit ae0c2fd

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

examples/wrenformer/mat_bench/save_matbench_aflow_labels.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@
1515
"""
1616

1717

18-
mbbm = MatbenchBenchmark()
18+
benchmark = MatbenchBenchmark()
1919

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

2525
if "structure" in df:
26-
df["composition"] = [x.formula for x in df.structure]
26+
df["composition"] = [struct.formula for struct in df.structure]
2727
df["wyckoff"] = [
28-
get_aflow_label_from_spglib(x)
29-
for x in tqdm(df.structure, desc="Getting Aflow Wyckoff labels")
28+
get_aflow_label_from_spglib(struct)
29+
for struct in tqdm(df.structure, desc="Getting Aflow Wyckoff labels")
3030
]
3131
elif "composition" in df:
32-
df["composition"] = [x.formula for x in df.composition]
32+
df["composition"] = [comp.formula for comp in df.composition]
3333
else:
3434
raise ValueError("No structure or composition column found")
3535

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "aviary"
7-
version = "0.1.0"
7+
version = "0.1.1"
88
description = "A collection of machine learning models for materials discovery"
99
authors = [{ name = "Rhys Goodall", email = "[email protected]" }]
1010
readme = "README.md"

0 commit comments

Comments
 (0)