Skip to main content

system.kanoa.quality.config.getTolerances

This function requires KanoaQDS module

Description

Returns attribute tolerances based on the passed parameters in KanoaQDS.

Syntax

getTolerances(paramsDict)
  • Parameters
      dict paramsDict - Dictionary, e.g., {'enabled': True, 'attributeId': 1, 'attributeName': 'ph', 'path': 'Chemical Tanks\ph', 'attributeToleranceId': 3, 'assetId': 2, 'itemId':54, 'itemClassId': 34, 'itemSetId':6}
  • Returns
      pyDataset data - Dataset containing attribute tolerance information.
  • Code Examples

    # Usage example
    tolerance_params = {'enabled': True, 'attributeId': 1, 'attributeName': 'ph', 'path': 'Chemical Tanks\ph', 'attributeToleranceId': 3, 'assetId': 2, 'itemId': 54, 'itemClassId': 34, 'itemSetId': 6}
    tolerance_data = system.kanoa.quality.config.getTolerances(paramsDict=tolerance_params)

    # Accessing data in the dataset
    for row in tolerance_data:
    print(f"Attribute Tolerance ID: {row['attributeToleranceId']}, Attribute Name: {row['attributeName']}, Path: {row['path']}, Enabled: {row['enabled']}")