isotope_symbol

plasmapy.particles.symbols.isotope_symbol(isotope: Particle, mass_numb: int | None = None) str[source]

Return the symbol representing an isotope.

Parameters:
  • isotope (atom-like) – A str representing an element, isotope, or ion or an int representing an atomic number

  • mass_numb (integer, keyword-only, optional) – The mass number of an isotope.

Returns:

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.

Warns:

`~plasmapy.particles.exceptions.ParticleWarning` – 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'