onix.utils.halflife_to_second¶
-
onix.utils.
halflife_to_second
(half_life, unit)[source]¶ Converts a half life from specified units into seconds.
- Parameters
life (half) – Half life of the nuclide
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’