a
    yn„f#  ã                   @  sh   d dl mZ d dlZd dlmZ d dlmZ d dlm	Z	 dZ
e	 ¡ Zeƒ ddddœd	d
„ƒZdd„ ZdS )é    )ÚannotationsN)Úhigh_level_function)ÚHighLevelContext)ÚNumpyMetadata)Úwithout_parametersT)Ú	highlevelÚbehaviorÚattrsc                c  s   | fV  t | |||ƒS )a  
    Args:
        array: Array-like data (anything #ak.to_layout recognizes).
        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.

    This function returns a new array without any parameters in its
    #ak.Array.layout, on nodes of any level of depth.

    Note that a "new array" is a lightweight shallow copy, not a duplication
    of large data buffers.
    )Ú_impl)Úarrayr   r   r	   © r   úk/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/awkward/operations/ak_without_parameters.pyr      s    r   c                 C  s`   t ||d�� }|j| ddd�}W d   ƒ n1 s20    Y  tjj|dd„ dd�}|j||d�S )	N)r   r	   FÚerror)Zallow_recordZprimitive_policyc                 [  s   d S )Nr   )ÚlayoutÚkwargsr   r   r   Ú<lambda>-   ó    z_impl.<locals>.<lambda>)Zkeep_parameters)r   )r   ÚunwrapÚakZ_doZrecursively_applyÚwrap)r   r   r   r	   Úctxr   Úoutr   r   r   r
   (   s    .
ÿr
   )Ú
__future__r   Zawkwardr   Zawkward._dispatchr   Zawkward._layoutr   Zawkward._nplikes.numpy_liker   Ú__all__ÚinstanceÚnpr   r
   r   r   r   r   Ú<module>   s   