Skip to content

NestedHistoryTimestampIterable #

Bases: object

__iter__() #

Implement iter(self).

__len__() #

Return len(self).

__repr__() #

Return repr(self).

collect() #

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

Returns:

Type Description
list[list[NDArray[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:

Type Description
NDArray[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:

Type Description
list[int]

List of timestamps in milliseconds.

to_list() #

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

Returns:

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

List of timestamps in milliseconds per nested history.