def _has_tensor_data(object):
    data_sources = get_vtk_src(object)
    for source in data_sources:
        if source.point_data.tensors is not None:
            return True
        elif source.cell_data.tensors is not None:
            return True
    return False
Tests if an object has tensor data.
dataset/ETHPy150Open enthought/mayavi/mayavi/tools/tools.py/_has_tensor_data