isotope_symbol
- plasmapy.particles.symbols.isotope_symbol( ) str [source]
Return the symbol representing an isotope.
- Parameters:
isotope (atom-like) – A
str
representing an element, isotope, or ion or anint
representing an atomic numbermass_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:
- 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.
See also
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'