Source code for kappa_sdk.enumerator.data_enumerator_point

from datetime import datetime
from typing import List


[docs] class DataEnumeratorPoint: """ A time-based slice of results produced by the :class:`DataEnumerator`. Contains a time-index and a list of interpolated, extrapolated, or actual values from vector inputs. .. note:: Should not be instantiated directly. """ def __init__(self, date: datetime, values: List[float]): self.__date: datetime = date self.__values: List[float] = values @property def date(self) -> datetime: """ Gets a time-index (date and time). """ return self.__date @property def values(self) -> List[float]: """ Gets a list of values of input vectors in the same order as those inputs were given to the enumerator. """ return self.__values