Skip to main content

system.kanoa.quality.config.getUnits

This function requires KanoaQDS module

Description

Returns engineering units that meet the passed criteria in KanoaQDS.

Syntax

getUnits(paramsDict)
  • Parameters
      dict paramsDict - Dictionary with optional parameters, e.g., {'engUnitId': 1, 'engUnitName': 'some unit', 'enabled': True}
  • Returns
      pyDataset unitsData - Units data.
  • Code Examples

    # Usage example
    params_dict_units = {'engUnitId': 1, 'engUnitName': 'some unit', 'enabled': True}
    units_data = system.kanoa.quality.config.getUnits(paramsDict=params_dict_units)

    # Process the retrieved data
    for row in units_data:
    print(row['engUnitId'], row['engUnitName'], row['enabled'])