imas.convert_core_edge_plasma.convert_to_plasma_sources

imas.convert_core_edge_plasma.convert_to_plasma_sources(core_or_edge_sources: IDSToplevel, *, deepcopy: bool = False) IDSToplevel

Convert a core_sources or edge_sources IDS to a plasma_sources IDS.

The input IDS must use a Data Dictionary version for which the plasma_sources IDS exists (3.42.0 or newer).

Parameters:
core_or_edge_sources: IDSToplevel

The core_sources or edge_sources IDS to be converted.

Keyword Arguments:
deepcopy: bool = False

When True, performs a deep copy of all data. When False (default), numpy arrays are not copied and the converted IDS shares the same underlying data buffers.


Last update: 2026-01-28