cherab.imas.ids.common.species.get_neutralยถ

cherab.imas.ids.common.species.get_neutral(neutral: IDSStructure, elements: list[Element]) tuple[str, frozenset]Sourceยถ

Get a unique identifier for a neutral or molecule.

Parameters:
neutral: IDSStructureยถ

The neutral structure from IMAS.

elements: list[Element]ยถ

List of elements that make up the neutral state.

Returns:

  • species_type (str) โ€“ The type of species: โ€˜moleculeโ€™ or โ€˜ionโ€™.

  • species_id (frozenset) โ€“ A frozenset of key-value pairs that uniquely identify the species.