trendminer.tags module

This module contains some utility functions for tags (i.e. time series)

trendminer.tags.has_values_mapping(client: trendminer.trendminer_client.TrendMinerClient, tag_uuid: uuid.UUID) → bool

Checks whether a given time series has value mappings or not

Parameters
  • client – TrendMiner client for communication

  • tag_uuid – Time series UUID

Returns

Has value mapping or not

trendminer.tags.name_to_uuid(client: trendminer.trendminer_client.TrendMinerClient, tag_name: str) → uuid.UUID

Converts a tag name into a UUID

Parameters
  • client – TrendMiner client for communication

  • tag_name – Tag name to convert

Returns

UUID of given tag name

Raises

TagNameMappingException – could not convert to UUID

trendminer.tags.values_mapping(client: trendminer.trendminer_client.TrendMinerClient, tag_uuid: uuid.UUID) → Dict[int, str]

Returns the value mapping for given time series ID

Parameters
  • client – TrendMiner client for communication

  • tag_uuid – Time series UUID

Returns

Mapping integer values to string values