onix.utils.halflife_to_decay

onix.utils.halflife_to_decay(half_life, unit)[source]

Converts a half life into a decay constant. User can choose half life input units with the unit parameter.

Parameters
  • life (half) – Half life of the nuclide

  • unit (str) –

    Units in which half life is entered Possible unit entries:

    • ’s’ for seconds

    • ’m’ for minutes

    • ’h’ for hours

    • ’d’ for days

    • ’y’ for years

    • ’1e3y’ for 1000 years

    • ’1e6y’

    • ’1e9y’