a
    yn„f…	  ã                	   @  sP   d dl mZ d dlZd dlmZ dZeƒ ddddddddœdd	„ƒZd
d„ ZdS )é    )ÚannotationsN)Úhigh_level_function)Úfrom_featherTF)ÚcolumnsÚuse_threadsÚ
memory_mapÚgenerate_bitmasksÚ	highlevelÚbehaviorÚattrsc             	   C  s   t | |||||||ƒS )a‹  
    Args:
        path (str or file-like object): Feather file to read as an Awkward Array,
            passed directly to [pyarrow.feather.read_table](https://arrow.apache.org/docs/python/generated/pyarrow.feather.read_table.html).
        columns (sequence): Only read a specific set of columns. If not provided,
            all columns are read.
        use_threads (bool): If True, parallelize reading using multiple threads.
        memory_map (bool): If True, use memory mapping when opening file on disk,
            when source is a string.
        generate_bitmasks (bool): If enabled and Arrow/Parquet does not have Awkward
            metadata, `generate_bitmasks=True` creates empty bitmasks for nullable
            types that don't have bitmasks in the Arrow/Parquet data, so that the
            Form (BitMaskedForm vs UnmaskedForm) is predictable.
        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.

    Reads an Feather file as an Awkward Array (through pyarrow).

        >>> ak.from_feather("file_name.feather")
        <Array [[1.1, 2.2, 3.3], [], [4.4, 5.5]] type='3 * var * float64'>


    See also #ak.to_feather.
    )Ú_impl)Úpathr   r   r   r   r	   r
   r   © r   úe/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/awkward/operations/ak_from_feather.pyr      s    )ør   c           
      C  s0   dd l }|j | |||¡}	tjj |	||||¡S )Nr   )Zpyarrow.featherZfeatherZ
read_tableÚakÚ
operationsZak_from_arrowr   )
r   r   r   r   r   r	   r
   r   ZpyarrowZarrow_tabler   r   r   r   @   s    
ûr   )	Ú
__future__r   Zawkwardr   Zawkward._dispatchr   Ú__all__r   r   r   r   r   r   Ú<module>   s   ÷4