NestedHistoryEventIdIterable

Methods

MethodDescription
collectCollect event ids for each history in each nested iterable into a NumPy array.
flattenFlatten the nested iterable of history objects into a single NumPy NDArray of all contained event ids.
flattened_listFlatten the nested iterable of history objects into a single list of all contained event ids.
to_listCollect event ids for each history in each nested iterable into a list.

Method Details

collect

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

Returns

TypeDescription
list[list[NDArray[np.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

TypeDescription
NDArray[np.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

TypeDescription
list[int]List of timestamps in milliseconds.

to_list

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

Returns

TypeDescription
list[list[list[int]]]List of event ids per nested history.