U
    f»{j¦  ã                   @   sî   d Z ddlmZ ddlmZ ddlmZmZmZm	Z	m
Z
mZmZmZmZmZmZmZmZmZmZmZmZ ddlmZ dd	„ Zeeee	e	e
e
eeeeeeeeeeeeed
œZeedd�eedd�eedd�dœZee–Zedddœdd„ƒZdS )zDGeneric wrapper function read_raw for specific read_raw_xxx readers.é    )ÚPath)Úpartialé   )Úread_raw_edfÚread_raw_bdfÚread_raw_gdfÚread_raw_brainvisionÚread_raw_fifÚread_raw_eeglabÚread_raw_cntÚread_raw_egiÚread_raw_eximiaÚread_raw_nirxÚread_raw_fieldtripÚread_raw_artemis123Úread_raw_nicoletÚread_raw_kitÚread_raw_ctfÚread_raw_boxyÚread_raw_snirfé   )Úfill_docc                 K   sR   d  t| ƒj¡}d|› d�}| d¡}|d k	r>|d|› d�7 }|d7 }t|ƒ‚d S )NÚ zUnsupported file type (z).Úsuggestz Try reading a z file instead.z= Consider using a dedicated reader function for more options.)Újoinr   ÚsuffixesÚgetÚ
ValueError)ÚfnameÚkwargsÚextÚmsgr   © r"   úO/var/www/html/bwave/python/venv/lib/python3.8/site-packages/mne/io/_read_raw.pyÚ_read_unsupported   s    
r$   )z.edfz.bdfz.gdfú.vhdrú.ahdrz.fifz.fif.gzz.setz.cntz.mffz.nxez.hdrz.snirfz.matz.binz.dataz.sqdz.conz.dsz.txtr%   )r   r&   )z.vmrkz.amrkz.eegFN©ÚpreloadÚverbosec                K   s>   d  t| ƒj¡}|tkr2t| | f||dœ|—ŽS t| ƒ dS )aT  Read raw file.

    This function is a convenient wrapper for readers defined in `mne.io`. The
    correct reader is automatically selected based on the detected file format.
    All function arguments are passed to the respective reader.

    The following readers are currently supported:

    `~mne.io.read_raw_artemis123`, `~mne.io.read_raw_bdf`,
    `~mne.io.read_raw_boxy`, `~mne.io.read_raw_brainvision`,
    `~mne.io.read_raw_cnt`, `~mne.io.read_raw_ctf`, `~mne.io.read_raw_edf`,
    `~mne.io.read_raw_eeglab`, `~mne.io.read_raw_egi`,
    `~mne.io.read_raw_eximia`, `~mne.io.read_raw_fieldtrip`,
    `~mne.io.read_raw_fif`,  `~mne.io.read_raw_gdf`, `~mne.io.read_raw_kit`,
    `~mne.io.read_raw_nicolet`, and `~mne.io.read_raw_nirx`.

    Parameters
    ----------
    fname : path-like
        Name of the file to read.
    %(preload)s
    %(verbose)s
    **kwargs
        Additional keyword arguments to pass to the underlying reader. For
        details, see the arguments of the reader for the respective file
        format.

    Returns
    -------
    raw : mne.io.Raw
        Raw object.
    r   r'   N)r   r   r   Úreadersr$   )r   r(   r)   r   r    r"   r"   r#   Úread_raw>   s    "r+   )Ú__doc__Úpathlibr   Ú	functoolsr   r   r   r   r   r   r	   r
   r   r   r   r   r   r   r   r   r   r   r   Úutilsr   r$   Ú	supportedZ	suggestedr*   r+   r"   r"   r"   r#   Ú<module>   sB   Lì


þ