system.kanoa.quality.config.sheets.getUniqueChecksOnly
Description
Removes duplicates from the check sheets obtained using the `kanoa.qds.config.sheets.getSheetsFilteredBy()` function and returns a list of unique check sheet IDs.Syntax
getUniqueChecksOnly(assetChkShts)- assetChkShts - Data containing check sheets (pyDataset).
- chkShtIdList - List of unique check sheet IDs (list).
Code Example
# Usage example
asset_chk_shts = system.kanoa.qds.config.sheets.getSheetsFilteredBy(paramsDict={'enabled': True, 'triggerTypeId': 1, 'modeId': 2, 'shiftNameId': 3, 'toolingId': 6, 'chkShtTypeId': 7, 'chkShtId': 2, 'assetReqd': True, 'assetId': 56})
unique_chk_sht_ids = system.kanoa.quality.config.sheets.getUniqueChecksOnly(assetChkShts=asset_chk_shts)
print(unique_chk_sht_ids)