tardis.opacities.macro_atom.macroatom_state module

class tardis.opacities.macro_atom.macroatom_state.MacroAtomState(*args, **kwargs)[source]

Bases: HDFWriterMixin

Current State of the MacroAtom

Parameters:
transition_probabilitiespd.DataFrame

Macro Atom Transition probabilities between levels

transition_typepd.DataFrame)

Macro Atom transition types

destination_level_idpd.DataFrame

ID of destination levels of the Macro Atom

transition_line_idpd.DataFrame

ID of lines corresponding to Macro Atom transitions

macro_block_referencespd.DataFrame or np.ndarray

Index references to the Macro Atom blocks

line2macro_level_upperpd.DataFrame

Mapping from lines to Macro Atom upper levels

classmethod from_legacy_plasma(plasma)[source]

Generates a MacroAtomState object from a tardis BasePlasma

Parameters:
plasmatarids.plasma.BasePlasma

legacy base plasma

Returns:
MacroAtomState
hdf_name = 'macro_atom_state'
hdf_properties = ['transition_probabilities', 'transition_type', 'destination_level_id', 'transition_line_id', 'macro_block_references', 'line2macro_level_upper']