is_stable
- plasmapy.particles.atomic.is_stable( ) bool [source]
Return
True
for stable isotopes and particles andFalse
for 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