tardis.io.decay module

class tardis.io.decay.IsotopeAbundances(*args, **kwargs)[source]

Bases: pandas.core.frame.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_materials(materials)[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_materials()[source]

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

Returns
list

list of pyne Materials