We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3819efc commit af9c4c2Copy full SHA for af9c4c2
doped/core.py
@@ -1421,7 +1421,9 @@ def _guess_and_set_struct_oxi_states(structure):
1421
"""
1422
if len(structure.composition.elements) == 1:
1423
oxi_dec_structure = structure.copy() # don't modify original structure
1424
- oxi_dec_structure.add_oxidation_state_by_element({str(structure.composition.elements[0]): 0})
+ oxi_dec_structure.add_oxidation_state_by_element(
1425
+ {next(iter(structure.composition.elements)).symbol: 0}
1426
+ )
1427
return oxi_dec_structure
1428
1429
for symm_tol in [0.1, 0]: # default, then with no symmetry
0 commit comments