diff --git a/rocketpy/mathutils/function.py b/rocketpy/mathutils/function.py index d9d49d2b9..ba05636a5 100644 --- a/rocketpy/mathutils/function.py +++ b/rocketpy/mathutils/function.py @@ -3247,12 +3247,12 @@ def __validate_source(self, source): # pylint: disable=too-many-statements ) source_len, source_dim = source.shape - - if source_len < source_dim: - raise ValueError( - "Too few data points to define a domain. The number of rows " - "must be greater than or equal to the number of columns." - ) + if not source_len == 1: # do not check for one point Functions + if source_len < source_dim: + raise ValueError( + "Too few data points to define a domain. The number of rows " + "must be greater than or equal to the number of columns." + ) return source