tardis.model.matter.decay module

class tardis.model.matter.decay.IsotopicMassFraction(*args, **kwargs)[source]

Bases: DataFrame

as_atoms()[source]

Merge Isotope dataframe according to atomic number

Returns:
pandas.DataFrame

Merged isotope abundances

decay(t)[source]

Decay the Model

Parameters:
tfloat or astropy.units.Quantity

if float it will be understood as days

Returns:
pandas.DataFrame

Decayed abundances

classmethod from_inventories(inventories)[source]
static id_to_tuple(atomic_id)[source]
merge(other, normalize=True)[source]

Merge Isotope dataframe with abundance passed as parameter

Parameters:
otherpd.DataFrame
normalizebool

If true, resultant dataframe will be normalized

Returns:
pandas.DataFrame

merged abundances

to_inventories(shell_masses=None)[source]

Convert DataFrame to a list of inventories interpreting the MultiIndex as atomic_number and mass_number

Returns:
list

list of radioactivedecay Inventories