(data)
return dict(size=size, ndim=ndim, ncomponents=ncomponents)
Return the texture information of a texture data.
    
    Arguments:
      * data: the texture data as an array.
    
    Returns:
      * texinfo: a dictionary with the information related to the texture data.
Return the texture information of a texture data.
    
    Arguments:
      * data: the texture data as an array.
    
    Returns:
      * texinfo: a dictionary with the information related to the texture data.
Return the texture information of a texture data . Arguments : * data : the texture data as an array . Returns : * texinfo : a dictionary with the information related to the texture data .
def _get_texinfo(data):
    """Return the texture information of a texture data.
    
    Arguments:
      * data: the texture data as an array.
    
    Returns:
      * texinfo: a dictionary with the information related to the texture data.
      
    """
    assert data.ndim == 3
    size = data.shape[:2]
    if size[0] == 1:
        ndim = 1
    elif size[0] > 1:
        ndim = 2
    ncomponents = data.shape[2]
    return dict(size=size, ndim=ndim, ncomponents=ncomponents)
def _get_texinfo ( data ) : assert data . ndim == 3 size = data . shape [ : 2 ] if size [ 0 ] == 1 : ndim = 1 elif size [ 0 ] > 1 : ndim = 2 ncomponents = data . shape [ 2 ] return dict ( size = size , ndim = ndim , ncomponents = ncomponents )