pytimber.LoggingDB.get_data_using_snapshots

LoggingDB.get_data_using_snapshots(pattern_or_list: Union[str, Iterable[str]], owner_pattern: str = '%', unix_time: bool = True, search_criteria: Optional[SnapshotSearchCriteria] = None) Dict[str, Dict[str, Tuple[Tuple[ndarray, ndarray], ndarray]]]

Get data for variables attached to snapshots which are selected by provided list of strings or pattern in a time window defined in the snapshot configuration

Parameters:
  • pattern_or_list – pattern for the selection of snapshot names or a list of snapshot names

  • owner_pattern – pattern for the filtering by owner name

  • unix_time – Whether to return POSIX timestamps as float values. If True, return POSIX timestamps. If False, return datetime objects. Default value is True.

  • search_criteria – SnapshotSearchCriteria object having a triple of optional values: fundamental_pattern, for example: “CPS:%:SFTPRO%”. If no pattern is given for the fundamental all the data are returned. start_time: end_time: if specified then the values from snapshot configuration will be overwritten

Returns:

A dictionary of snapshots names having dictionaries of variables with corresponding data for a given time period