tardis.plasma.properties.rate_matrix_index module¶
- class tardis.plasma.properties.rate_matrix_index.NLTEIndexHelper(plasma_parent, nlte_ionization_species=0, nlte_excitation_species=0)[source]¶
Bases:
ProcessingPlasmaProperty
- calculate(levels, nlte_ionization_species, nlte_excitation_species)[source]¶
Generates rate_matrix_index using levels and changing the last index(level) to “lte_ion” if that ion_number is treated in LTE or nebular, “nlte_ion” for NLTE ionization and keeps the levels for the rest.
- Parameters:
- levelsMultiIndex
(Atomic number, Ion number, Level)
- nlte_ionization_specieslist
List of tuples for (atomic number, ion number) which are treated in NLTE ionization.
- Returns:
- MultiIndex
- outputs = ('rate_matrix_index',)¶