CADETProcess.dataStructure.parameter.DimensionalizedArray.cast_value#
- DimensionalizedArray.cast_value(value)#
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.