You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ion.oxi_state_guesses fails for Br, and for Br2 unless all_oxi_state_guesses is set. This is a problem because 1) Composition.oxi_state_guesses works in this case and 2) Br is the standard state of bromine
>>> from pymatgen.core.ion import Ion
>>> Ion.from_formula('Br').oxi_state_guesses()
()
>>> Ion.from_formula('Br').oxi_state_guesses(all_oxi_states=True)
()
>>> Ion.from_formula('Br2').oxi_state_guesses()
()
>>> Ion.from_formula('Br2').oxi_state_guesses(all_oxi_states=True)
({'Br': 0.0},)
>>> from pymatgen.core import Composition
>>> Composition('Br').oxi_state_guesses()
({'Br': 0.0},)
Python version
Python 3.10.6
Pymatgen version
Version: 2024.2.8
Operating system version
Ubuntu (Windows WSL2)
Current behavior
Ion.oxi_state_guesses
fails forBr
, and forBr2
unlessall_oxi_state_guesses
is set. This is a problem because 1)Composition.oxi_state_guesses
works in this case and 2)Br
is the standard state of bromineExpected Behavior
Minimal example
No response
Relevant files to reproduce this bug
No response
The text was updated successfully, but these errors were encountered: