Skip to content

Commit

Permalink
Use __str__() instead of symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
arm61 committed Aug 10, 2022
1 parent 9d7938d commit daa6e94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kinisi/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def get_indices(
indices = []
framework_indices = []
for i, site in enumerate(structure):
if site.specie.symbol == specie:
if site.specie.__str__() == specie:
indices.append(i)
else:
framework_indices.append(i)
Expand Down

0 comments on commit daa6e94

Please sign in to comment.