Skip to content

Commit a0e021c

Browse files
committed
Revert fix in count_elements
1 parent d56f964 commit a0e021c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vasp_snake/cell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ def count_elements(filename):
3030
poscar = Poscar.from_file(filename)
3131
atomic_numbers = poscar.structure.atomic_numbers
3232
# Convert atomic numbers to element symbols
33-
symbols = [Element.from_Z(z) for z in atomic_numbers]
33+
symbols = [Element.from_Z(z).symbol for z in atomic_numbers]
3434
counts = dict(Counter(symbols))
3535
return counts

0 commit comments

Comments
 (0)