CADETProcess.dataStructure.parameter.SizedUnsignedNdArray#
- class CADETProcess.dataStructure.parameter.SizedUnsignedNdArray(*args: Any, ty: type | None = None, **kwargs: Any)[source]#
Descriptor for unsigned numpy arrays whose size depends on other instance attributes.
- Attributes:
defaultAny: Get or set the default value of the parameter.
is_independentDetermine whether the size is independent of other parameters.
Methods
cast_value(value)Cast lists or scalars (int or float) to numpy arrays.
check_range(value)Check each element of an array-like structure against specified bounds.
check_size(instance, value)Validate that the provided value's size matches the expected size.
get_default_value(instance)Return default values if necessary.
get_expected_size(instance)Calculate the expected size of a numpy array based on the instance's other attributes.
get_size(value)Determine the size of the provided value.
ty