a
    yn„fõ  ã                   @  sN   d dl mZ d dlmZ d dlmZmZ dZeƒ ddddddd	œd
d„ƒZdS )é    )Úannotations)Úhigh_level_function)Úfrom_arraylibÚwrap_layout)Ú
from_numpyFTNÚerror)ÚregulararrayÚrecordarrayÚ	highlevelÚbehaviorÚprimitive_policyÚattrsc                C  s   t t| |||d�||d�S )ad  
    Args:
        array (np.ndarray): The NumPy array to convert into an Awkward Array.
            This array can be a np.ma.MaskedArray.
        regulararray (bool): If True and the array is multidimensional,
            the dimensions are represented by nested #ak.contents.RegularArray
            nodes; if False and the array is multidimensional, the dimensions
            are represented by a multivalued #ak.contents.NumpyArray.shape.
            If the array is one-dimensional, this has no effect.
        recordarray (bool): If True and the array is a NumPy structured array
            (dtype.names is not None), the fields are represented by an
            #ak.contents.RecordArray; if False and the array is a structured
            array, the structure is left in the #ak.contents.NumpyArray `format`,
            which some functions do not recognize.
        highlevel (bool): If True, return an #ak.Array; otherwise, return
            a low-level #ak.contents.Content subclass.
        behavior (None or dict): Custom #ak.behavior for the output array, if
            high-level.
        attrs (None or dict): Custom attributes for the output array, if
            high-level.

    Converts a NumPy array into an Awkward Array.

    The resulting layout can only involve the following #ak.contents.Content types:

    * #ak.contents.NumpyArray
    * #ak.contents.ByteMaskedArray or #ak.contents.UnmaskedArray if the
      `array` is an np.ma.MaskedArray.
    * #ak.contents.RegularArray if `regulararray=True`.
    * #ak.contents.RecordArray if `recordarray=True`.

    See also #ak.to_numpy and #ak.from_cupy.
    )r   )r
   r   )r   r   )Úarrayr   r	   r
   r   r   r   © r   úc/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/awkward/operations/ak_from_numpy.pyr      s    ,ÿûr   )	Ú
__future__r   Zawkward._dispatchr   Zawkward._layoutr   r   Ú__all__r   r   r   r   r   Ú<module>   s   ø