a
    «ˆc  ã                   @   s(   d dl mZ d dlmZmZ dd„ ZdS )é    )Útvtk)Úget_new_outputÚdsac                 C   s\   | du rdS t  t t| ƒ¡¡}|jr<t|j ¡ ƒdkr<dS |jrXt|j ¡ ƒdkrXdS dS )z|Returns `True` when the given TVTK `dataset` has any attribute
    arrays in point and cell data and `False` otherwise.
    NFr   T)	r   ZWrapDataObjectr   Zto_vtkr   Z	PointDataÚlenÚkeysZCellData)ZdatasetÚobj© r   úW/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/mayavi/sources/utils.pyÚhas_attributes   s    r
   N)Ztvtk.apir   Zmayavi.core.utilsr   r   r
   r   r   r   r	   Ú<module>   s   