isotope_symbolο
- plasmapy.particles.symbols.isotope_symbol( ) str[source]ο
Return the symbol representing an isotope.
- Parameters:
isotope (atom-like) β A
strrepresenting an element, isotope, or ion or anintrepresenting 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'