cherab.imas.ids.common.species.SpeciesDataΒΆ

class cherab.imas.ids.common.species.SpeciesData(z_min: int, z_max: int, element: ~cherab.core.atomic.elements.Element | ~cherab.core.atomic.elements.Isotope | None = None, elements: tuple[~cherab.core.atomic.elements.Element | ~cherab.core.atomic.elements.Isotope, ...] = <factory>, species_type: ~cherab.imas.ids.common.species.SpeciesType | None = None, electron_configuration: str | None = None, vibrational_mode: str | None = None, vibrational_level: float | None = None)SourceΒΆ

Bases: object

Dataclass to represent the data of a species in IMAS.

Methods

compact_label()

Return a compact label for display beneath a species-type group.

rich_label([compact])

Return a Rich label colored consistently by element symbol.

Attributes

electron_configuration

Electron configuration of the species

element

Element that makes up the species, if it is a single particle

species_type

Type of species

vibrational_level

Vibrational level of the species, if it is a molecule

vibrational_mode

Vibrational mode of the species, if it is a molecule

z_min

Minimum ionization state of the species

z_max

Maximum ionization state of the species

elements

Elements that make up the species, if it is a molecule

z_min : intΒΆ

Minimum ionization state of the species

z_max : intΒΆ

Maximum ionization state of the species

element : Element | Isotope | None = NoneΒΆ

Element that makes up the species, if it is a single particle

elements : tuple[Element | Isotope, ...]ΒΆ

Elements that make up the species, if it is a molecule

species_type : SpeciesType | None = NoneΒΆ

Type of species

electron_configuration : str | None = NoneΒΆ

Electron configuration of the species

vibrational_mode : str | None = NoneΒΆ

Vibrational mode of the species, if it is a molecule

vibrational_level : float | None = NoneΒΆ

Vibrational level of the species, if it is a molecule

compact_label() strSourceΒΆ

Return a compact label for display beneath a species-type group.

Returns:

str – Elemental or molecular symbol followed by charge information when non-zero.

rich_label(compact: bool = False) TextSourceΒΆ

Return a Rich label colored consistently by element symbol.

Parameters:
compact: bool = FalseΒΆ

Use the compact context-aware label instead of the standalone description.

Returns:

rich.text.Text – Species label with an isotope-derived color when element data is available.