isotope_symbol

plasmapy.atomic.isotope_symbol(isotope: plasmapy.atomic.particle_class.Particle, mass_numb: Optional[numbers.Integral] = None) → str

Return the symbol representing an isotope.

Parameters
  • isotope (str, int, or Particle) – A str representing an element, isotope, or ion or an int representing an atomic number

  • mass_numb (int or str, optional) – The mass number of the isotope.

Returns

symbol – The isotopic symbol. The result will generally be returned as something like 'He-4' or 'Au-197'. This function will return 'D' for deuterium and 'T' for tritium.

Return type

str

Raises
  • InvalidIsotopeError – If the argument is a valid particle but not a valid isotope.

  • InvalidParticleError – If the argument does not correspond to a valid particle or contradictory information is provided.

  • TypeError – If the argument is not a str, int, or Particle.

Warns

`~plasmapy.utils.AtomicWarning` – If redundant isotope information is provided.

Examples

>>> isotope_symbol('He', 4)
'He-4'
>>> isotope_symbol(79, 197)
'Au-197'
>>> isotope_symbol('hydrogen-2')
'D'
>>> isotope_symbol('carbon-13')
'C-13'
>>> isotope_symbol('alpha')
'He-4'