a
    yn„fÅ  ã                   @  sD   d dl mZ d dlZd dlmZ dZeƒ ddœdd„ƒZd	d
„ ZdS )é    )ÚannotationsN)Úhigh_level_function)Úis_validF©Ú	exceptionc                c  s   | fV  t | |ƒS )aÅ  
    Args:
        array: Array-like data (anything #ak.to_layout recognizes).
        exception (bool): If True, validity errors raise exceptions.

    Returns True if there are no errors and False if there is an error.

    Checks for errors in the structure of the array, such as indexes that run
    beyond the length of a node's `content`, etc. Either an error is raised or
    the function returns a boolean.

    See also #ak.validity_error.
    )Ú_impl)Úarrayr   © r	   úa/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/awkward/operations/ak_is_valid.pyr      s    r   c                 C  s   t jj| |d�}|dv S )Nr   )NÚ )ÚakÚ
operationsZvalidity_error)r   r   Úoutr	   r	   r
   r   !   s    r   )	Ú
__future__r   Zawkwardr   Zawkward._dispatchr   Ú__all__r   r   r	   r	   r	   r
   Ú<module>   s   