time series mapping
cognite.powerops.resync.time_series_mapping
This subpackage contains helpers that are used by end-user to generate the TimeSeriesMapping required as input in the CogSHOP configuration.
cognite.powerops.resync.time_series_mapping.mapping.filter_time_series_mappings(mapping, client)
Filters out mapping entries where the expected CDF time series is not found.
Source code in cognite/powerops/resync/time_series_mapping/mapping.py
cognite.powerops.resync.time_series_mapping.mapping.merge_and_keep_last_mapping_if_overlap(*mappings)
Within each TimeSeriesMapping keep the last TimeSeriesMappingEntry in cases
where they have the same shop_model_path
. Across mappings keep the last TimeSeriesMappingEntry
from the last TimeSeriesMapping.
Source code in cognite/powerops/resync/time_series_mapping/mapping.py
cognite.powerops.resync.time_series_mapping.mapping.special_case_handle_gate_number(name)
Must handle any gate numbers above 1 if found in other sources than YAML
Source code in cognite/powerops/resync/time_series_mapping/mapping.py
cognite.powerops.resync.time_series_mapping.mapping.print_warning(s)
cognite.powerops.resync.time_series_mapping.static_mapping.is_constant_valued_dict(attribute_value)
Check if all dictionary values are the same