pypet/parameter.py
def f_supports(self, data):
        """Checks if input data is supported by the parameter."""
        dtype = type(data)
        if dtype is tuple or dtype is list and len(data) == 0:
            return True  #  ArrayParameter does support empty tuples
        elif dtype is np.ndarray and data.size == 0 and data.ndim == 1:
                return True  #  ArrayParameter supports empty numpy arrays
        else:
            return super(ArrayParameter, self).f_supports(data)
def f_supports(self, data):
        """Checks if input data is supported by the parameter."""
        dtype = type(data)
        if dtype is tuple or dtype is list and len(data) == 0:
            return True  #  ArrayParameter does support empty tuples
        elif dtype is np.ndarray and data.size == 0 and data.ndim == 1:
                return True  #  ArrayParameter supports empty numpy arrays
        else:
            return super(ArrayParameter, self).f_supports(data)
def f_supports ( self , data ) : dtype = type ( data ) if dtype is tuple or dtype is list and len ( data ) == 0 : return True #  ArrayParameter does support empty tuples elif dtype is np . ndarray and data . size == 0 and data . ndim == 1 : return True #  ArrayParameter supports empty numpy arrays else : return super ( ArrayParameter , self ) . f_supports ( data )
Checks if input data is supported by the parameter.
Checks if input data is supported by the parameter .