Function adas.cfg_parity
def cfg_parity(config, iz0, iz)
-
Returns the parity of a configuration string.
Parameters
config
:str
- Configuration in standard or Eissner form.
iz0
:int
- Atomic number.
iz
:int
- Charge of ion (0 is neutral).
Returns
parity
:str
- EVEN, ODD or UNKNOWN
Notes
Version History
- Martin O'Mullane, 29-12-2022
- First version
Example
Consider an odd configuration of Cu9+
>>> import adas as adas >>> adas.cfg_parity('3s2 3p5 3d3', 29, 9) 'ODD'