Skip to main content

system.kanoa.quality.config.getToleranceData

Requires kanoaQDS license

Description

Returns tolerance data associated with the item, itemSet, itemClass, all items, asset, or any asset for the given attribute, asset, and item. The results are ranked based on the best fit.

Syntax

getToleranceData(attributeId, assetId, itemId)

Parameters:
  • attributeId (int): ID of the attribute
  • assetId (int): ID of the asset
  • itemId (int): ID of the item

  • Returns:
  • toleranceData (pyDataset): Dataset containing tolerance data.
  • Code Examples

    # Usage example
    attribute_id = 1
    asset_id = 2
    item_id = 3
    tolerance_data = system.kanoa.quality.config.getToleranceData(attributeId=attribute_id, assetId=asset_id, itemId=item_id)

    # Accessing data in the dataset
    for row in tolerance_data:
    print(f"Rank: {row['rankId']}, Rank Info: {row['rankInfo']}, Attribute Tolerance ID: {row['attributeToleranceId']}")