Skip to main content

system.kanoa.quality.config.sheets.getUniqueChecksOnly

This function requires KanoaQDS module

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)
  • Parameters
      assetChkShts - Data containing check sheets (pyDataset).
  • Returns
      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)