Skip to main content

system.kanoa.quality.config.getChecks

This function requires KanoaQDS module

Description

Returns the check items for the given parameters in KanoaQDS.

Syntax

getChecks(paramsDict)
  • Parameters
      paramsDict (dict)
      - chkShtId (int)
      - chkItemId (int)
      - chkItemName (string)
      - chkItemTypeId (int)
      - chkItemTypeName (string)
      - chkName (string)
      - chkItemGroupId (int)
      - chkItemGroupName (string)
      - dataTypeId (int)
      - dataTypeName (string)
      - isNumeric (bool)
      - enabled (bool)
      - dynamic (bool): If true, this check item will only be taken if a specification is found for it
      - persistence (bool): Determines if the last value taken for this check item carries over to the next check
  • Returns
      pyDataset checkData - Dataset containing check items.
  • Code Examples

    # Usage example
    >paramsDict = {'chkShtId': 1, 'chkItemId': 6, 'chkItemTypeName': 'Calculator', 'chkName': 'check 1', 'groupId': 4, 'dataTypeName': 'float', 'isNumeric': True, 'enabled': True, 'dynamic': True}
    >checkData = system.kanoa.quality.config.getChecks(paramsDict)
    >for row in checkData:
    print("Check Item ID: {row['chkItemId']}, Check Name: {row['chkItemName']}, Group ID: {row['chkItemGroupId']}")