CADETProcess.dataStructure.parameter.NdArray.cast_value#
- NdArray.cast_value(value: Any) Any | ndarray[source]#
Cast lists or scalars (int or float) to numpy arrays.
- Parameters:
- valueAny
The value to be casted.
- Returns:
- np.ndarray or Any
If the value is a list or scalar (int or float), it returns its numpy array equivalent. Otherwise, it returns the value unchanged.