NestedHistoryTimestampIterable

Methods

MethodDescription
collectCollect timestamps 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 timestamps.
flattened_listFlatten the nested iterable of history objects into a single list of all contained timestamps.
to_listCollect timestamps for each history in each nested iterable into a list.

Method Details

collect

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

Returns

TypeDescription
list[list[NDArray[np.int64]]]NumPy NDArray of timestamps in milliseconds per nested history.

flatten

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

Returns

TypeDescription
NDArray[np.int64]NumPy NDArray of timestamps in milliseconds.

flattened_list

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

Returns

TypeDescription
list[int]List of timestamps in milliseconds.

to_list

Collect timestamps for each history in each nested iterable into a list.

Returns

TypeDescription
list[list[list[int]]]List of timestamps in milliseconds per nested history.