pyanno4rt.input_check.check_functions._check_length
Vector length checking.
Overview
|
Check if the length of a vector-type object is invalid. |
Functions
- pyanno4rt.input_check.check_functions._check_length.check_length(label, data, reference, sign)[source]
Check if the length of a vector-type object is invalid.
- Parameters:
label (str) – Label for the item to be checked.
data (list, tuple or ndarray) – Vector-type object with length property.
reference (int) – Reference value for the length comparison.
sign ({'==', '>', '>=', '<', '<='}) – Sign for the length comparison.
- Raises:
ValueError – If the vector-type object has an invalid length.