onix.utils.decay_to_halflife

onix.utils.decay_to_halflife(decay_constant, unit)[source]

Converts a decay constant into a half life in specified units.

Parameters
  • decay_constant (float) – Decay constant of the nuclide in \(s^{-1}\)

  • unit (str) –

    Units in which half life is returned Possible unit entries:

    • ’s’ for seconds

    • ’m’ for minutes

    • ’h’ for hours

    • ’d’ for days

    • ’y’ for years

    • ’1e3y’ for 1000 years

    • ’1e6y’

    • ’1e9y’