Skip to main content

system.kanoa.quality.analysis.getAvgChkItemEventsByRow

This function requires KanoaQDS module

Description

Returns Check Sheet item event data averaged across all measurement counts for the given parameters with the check items in each row in KanoaQDS.

Syntax

getAvgChkItemEventsByRow(paramsDict)
  • Parameters
      paramsDict (dict)
      - startDate (dateTime): Required
      - endDate (datetime): Required
      - chkShtId (int) Required
      - assetId (int)
      - assetPath (string)
      - itemClassPath (string)
      - itemId (int)
      - chkShtTypeId (int)
      - chkItemGroupId (int)
      - chkItemGroupIdList (list[int])
      - chkShtStateIds (list(int)]
      - enabled (bool)
      - limit (int): Limit the number of records returned. Default is 1000
  • Returns
      data (pyDataset)
      msg (string): None if success
  • Code Example

    # Usage example
    params_dict = {'startDate': system.date.getDate(2023, 1, 1), 'endDate': system.date.getDate(2023, 12, 31), 'chkShtId': 123}
    data, ermsgror = system.kanoa.quality.analysis.getAvgChkItemEventsByRow(paramsDict)
    print(data)