File tree Expand file tree Collapse file tree
examples/wrenformer/mat_bench Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44
55[project ]
66name = " aviary"
7- version = " 0.1.0 "
7+ version = " 0.1.1 "
88description = " A collection of machine learning models for materials discovery"
99authors = [{ name = " Rhys Goodall" , email = " rhys.goodall@outlook.com" }]
1010readme = " README.md"
You can’t perform that action at this time.
0 commit comments