pytimber.LoggingDB.get_aligned

LoggingDB.get_aligned(pattern: Union[str, Iterable[str]], t1: Union[str, datetime, datetime64, timedelta, int, int64, float], t2: Union[str, datetime, datetime64, timedelta, int, int64, float], fundamental: Optional[Union[str, Fundamentals]] = None, master: Optional[str] = None) Dict[str, ndarray]

Retrieves the aligned data for the given pattern of variables within the specified time range [t1, t2], based on the fundamental and master variable.

Parameters:
  • pattern – A pattern or list of names to search for variables. In case a master variable is not explicitly specified a first variable from the list is considered as a master.

  • t1 – The start time of the time range in ISO 8601 format or Unix time.

  • t2 – The end time of the time range in ISO 8601 format or Unix time.

  • fundamental – An optional list of fundamentals to include in the query.

  • master – The optional name of the designated master variable to which data is aligned.

Returns:

A dictionary with the aligned timestamps and values of the requested variables.