system.kanoa.quality.config.getToleranceData
Description
Returns tolerance data associated with the item, itemSet, itemClass, all items, asset, or any asset for the given attribute, asset, and item in KanoaQDS. The results are ranked based on the best fit.Syntax
getToleranceData(attributeId, assetId, itemId)- int attributeId - ID of the attribute
- int assetId - ID of the asset
- int itemId - ID of the item
- pyDataset toleranceData - 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']}")