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

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

Get a unique identifier for a neutral state.

Parameters:
state: IDSStructureยถ

The neutral_state 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.