pypet/parameter.py
def _data_sanity_checks(self, explore_iterable):
        """Checks if data values are  valid.

        Checks if the data values are supported by the parameter and if the values are of the same
        type as the default value.

        """
        data_list = []

        for val in explore_iterable:

            if not self.f_supports(val):
                raise TypeError('%s is of not supported type %s.' % (repr(val), str(type(val))))

            if not self._values_of_same_type(val, self._default):
                raise TypeError(
                    'Data of `%s` is not of the same type as the original entry value, '
                    'new type is %s vs old type %s.' %
                    (self.v_full_name, str(type(val)), str(type(self._default))))

            data_list.append(val)

        if len(data_list) == 0:
            raise ValueError('Cannot explore an empty list!')

        return data_list
def _data_sanity_checks(self, explore_iterable):
        data_list = []

        for val in explore_iterable:

            if not self.f_supports(val):
                raise TypeError('%s is of not supported type %s.' % (repr(val), str(type(val))))

            if not self._values_of_same_type(val, self._default):
                raise TypeError(
                    'Data of `%s` is not of the same type as the original entry value, '
                    'new type is %s vs old type %s.' %
                    (self.v_full_name, str(type(val)), str(type(self._default))))

            data_list.append(val)

        if len(data_list) == 0:
            raise ValueError('Cannot explore an empty list!')

        return data_list
def _data_sanity_checks ( self , explore_iterable ) : data_list = [ ] for val in explore_iterable : if not self . f_supports ( val ) : raise TypeError ( '%s is of not supported type %s.' % ( repr ( val ) , str ( type ( val ) ) ) ) if not self . _values_of_same_type ( val , self . _default ) : raise TypeError ( 'Data of `%s` is not of the same type as the original entry value, ' 'new type is %s vs old type %s.' % ( self . v_full_name , str ( type ( val ) ) , str ( type ( self . _default ) ) ) ) data_list . append ( val ) if len ( data_list ) == 0 : raise ValueError ( 'Cannot explore an empty list!' ) return data_list
Checks if data values are  valid.

        Checks if the data values are supported by the parameter and if the values are of the same
        type as the default value.
Checks if data values are valid .