kd.data.py.Gather

kd.data.py.Gather#

class kauldron.data.py.Gather(*, key: typing.Annotated[typing.Any, <object object at 0x7824c478ba80>] | typing.Sequence[typing.Annotated[typing.Any, <object object at 0x7824c478ba80>]] | dict[typing.Annotated[typing.Any, <object object at 0x7824c478ba80>], typing.Annotated[typing.Any, <object object at 0x7824c478ba80>]], axis: int, indices: tuple[int, ...])[source]

Bases: kauldron.data.transforms.base.ElementWiseTransform

Gathers entries along a single dimension.

axis: int
indices: tuple[int, ...]
map_element(
element: kauldron.typing.array_types.XArray,
) kauldron.typing.array_types.XArray[source]
key: kontext.Key | Sequence[kontext.Key] | dict[kontext.Key, kontext.Key]