is_stableο
- plasmapy.particles.atomic.is_stable( ) bool[source]ο
Return
Truefor stable isotopes and particles andFalsefor unstable isotopes.- Parameters:
particle (particle-like) β A string representing an isotope or particle, or an integer representing an atomic number.
mass_numb (integer, keyword-only, optional) β The mass number of an isotope.
- Returns:
- Return type:
- Raises:
InvalidIsotopeError β If the arguments correspond to a valid element but not a valid isotope.
InvalidParticleError β If the arguments do not correspond to a valid particle.
MissingParticleDataError β If stability information is not available.
Examples
>>> is_stable("H-1") True >>> is_stable("tritium") False >>> is_stable("e-") True >>> is_stable("tau+") False