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[Dict[str, str]] = 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 –
a dictionary representing snapshot properties, for example: {
’getTimeZone’: ‘UTC_TIME’, ‘isEndTimeDynamic’: ‘false’, ‘getEndTime’: ‘2050-01-01 00:00:00.000’, ‘getStartTime’: ‘2023-01-01 00:00:00.000’, ‘fundamentalFilter’: f’{{“accelerator”: “ACC”, “lsaCycle”: “CYCLE%”, “timingUser”: “USER%”}}’,
},
- Returns:
A dictionary of snapshots names having dictionaries of variables with corresponding data for a given time period