U
    f»{jN  ã                   @   s4   d dl mZ ddlmZ ddlmZmZ dd„ ZdS )é    )ÚOrderedDicté   )Ú	_get_args)Ú_check_fnameÚloggerc                 C   sÂ  ddl m} ddlm} ddlm} ddlm} ddlm	} ddl
m} dd	lm} dd
lm}m}	 ddlm}
 ddlm} ddlm} ddlm} ddlm} t| ddd� tƒ }||d< ||d< ||d< ||d< ||d< ||d< ||d< ||d< |	|d< |
|d< ||d< ||d< ||d< ||d < | ¡ D ]�\}}t|ƒ}d!|k�sNt|ƒ‚t d"d#�}d$|k�rjd%|d$< z|| f|Ž W n6 t!k
�r° } zt" #d&||f ¡ W 5 d'}~X Y n
X |  S �q,d(S ))aA  Try to determine the type of the FIF file.

    Parameters
    ----------
    fname : str
        The filename. Should end in .fif or .fif.gz.

    Returns
    -------
    what : str | None
        The type of the file. Will be 'unknown' if it could not be determined.

    Notes
    -----
    .. versionadded:: 0.19
    é   )Úread_raw_fifr   )Úread_epochs)Úread_evokeds)Úread_ica)Úread_forward_solution)Úread_inverse_operator)Úread_source_spaces)Úread_bem_solutionÚread_bem_surfaces)Úread_cov)Ú
read_trans)Úread_events)Ú	read_proj)Úread_fiducialsÚreadT)Ú	overwriteZ
must_existÚrawZicaÚepochsÚevokedÚforwardZinverseÚsrczbem solutionzbem surfacesÚcovZ	transformÚeventsZ	fiducialsÚprojÚverboseÚerror)r    ZpreloadFz
Not %s: %sNÚunknown)$Zfiffr   r   r	   r   r
   Zpreprocessingr   r   r   Zminimum_normr   Zsource_spacer   Zbemr   r   r   r   Z
transformsr   Úeventr   r   r   Z	meas_infor   r   r   Úitemsr   ÚAssertionErrorÚdictÚ	Exceptionr   Údebug)Úfnamer   r	   r
   r   r   r   r   r   r   r   r   r   r   r   ZchecksÚwhatÚfuncÚargsÚkwargsÚexp© r/   úJ/var/www/html/bwave/python/venv/lib/python3.8/site-packages/mne/io/what.pyr*      sR    

$r*   N)Úcollectionsr   Úfixesr   Úutilsr   r   r*   r/   r/   r/   r0   Ú<module>   s   