Skip to content

NestedHistoryEventIdIterable #

Bases: object

__iter__() #

Implement iter(self).

__len__() #

Return len(self).

__repr__() #

Return repr(self).

collect() #

Collect event ids for each history in each nested iterable into a NumPy array.

Returns:

Type Description
list[list[NDArray[uintp]]]

NumPy NDArray of event ids per nested history.

flatten() #

Flatten the nested iterable of history objects into a single NumPy NDArray of all contained event ids.

Returns:

Type Description
NDArray[uintp]

NumPy NDArray of event ids.

flattened_list() #

Flatten the nested iterable of history objects into a single list of all contained event ids.

Returns:

Type Description
list[int]

List of timestamps in milliseconds.

to_list() #

Collect event ids for each history in each nested iterable into a list.

Returns:

Type Description
list[list[list[int]]]

List of event ids per nested history.