cherab.imas.ggd.base_mesh.as_index_arrayΒΆ

cherab.imas.ggd.base_mesh.as_index_array(indices: Sequence[SupportsIndex] | ndarray[tuple[Any, ...], dtype[integer[Any]]]) ndarray[tuple[Any, ...], dtype[int64]]SourceΒΆ

Return cell-selection indices as a NumPy integer array.

Parameters:
indices: Sequence[SupportsIndex] | ndarray[tuple[Any, ...], dtype[integer[Any]]]ΒΆ

Cell-selection indices as a sequence of integers or a NumPy array of integers.

Returns:

NDArray[np.intp] – Cell-selection indices as a NumPy integer array.