Skip to content

Commit 90247e9

Browse files
authored
Update species extraction to use specie symbols
1 parent f17bbd6 commit 90247e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/fairchem/applications/fastcsp/core/utils/structure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def extract_molecules(structure: Structure) -> list[Atoms]:
145145
)
146146
lattice = structure.lattice.matrix
147147
cart_coords = structure.cart_coords
148-
species = [str(s) for s in structure.species]
148+
species = [s.specie.symbol for s in structure.species]
149149

150150
atoms_list: list[Atoms] = []
151151
for comp_id in range(int(labels.max()) + 1):

0 commit comments

Comments
 (0)