is_stable¶
-
plasmapy.particles.atomic.
is_stable
(particle: plasmapy.particles.particle_class.Particle, mass_numb: Optional[numbers.Integral] = None) → bool¶ Return
True
for stable isotopes and particles andFalse
for unstable isotopes.- Parameters
- Returns
is_stable –
True
if the isotope is stable,False
if it is unstable.- 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