element_name¶
-
plasmapy.particles.
element_name
(element: plasmapy.particles.particle_class.Particle) → str¶ Return the name of an element.
- Parameters
argument (
str
,int
, orParticle
) – Astr
representing an element, isotope, or ion or anint
representing an atomic number- Returns
name – The name of the element.
- Return type
- Raises
InvalidElementError – If the argument is a valid particle but not a valid element.
InvalidParticleError – If the argument does not correspond to a valid particle.
See also
atomic_symbol
,isotope_symbol
,ionic_symbol
,particle_symbol
Examples
>>> element_name("H") 'hydrogen' >>> element_name("T") 'hydrogen' >>> element_name("alpha") 'helium' >>> element_name(42) 'molybdenum' >>> element_name("C-12") 'carbon'