defect_count#
- ens_calculator.defect_count(source_parts: List[ENS_PART] | List[int] | List[str] | ENS_PART | int | str, Defect_scalar_per_element: ENS_VAR | str | int, min_constant: ENS_VAR | str | int | float, max_constant: ENS_VAR | str | int | float, result_type: str = 'Compute_Per_case', output_varname: str | None = None) ENS_VAR #
Computes a constant variable defined as the count of the defects that exist between a specifed min and max value of any of the computed Defect scalar variables.
- Args:
- source_parts:
Any part(s) or a part #.
- Defect_scalar_per_element:
A computed Defect scalar per element variable.
- min_constant:
A minimum defect constant variable or specify a value.
- max_constant:
A maximum defect constant variable or specify a value.
- result_type:
Per/Case or Per/Part Results
- output_varname:
The name of the newly created variable
- Returns:
New ENS_VAR instance or None
- Note:
See Defect_Count() for function details.