U
    f»{jb	  ã                   @   s>   d Z ddlZddlZddlZddlmZ dd„ Zej ¡  dS )z§Create high-resolution head surfaces for coordinate alignment.

Examples
--------
.. code-block:: console

    $ mne make_scalp_surfaces --overwrite --subject sample

é    N)Úmake_scalp_surfacesc               
   C   s.  ddl m} m} | tƒ}t d¡}|jdddddd	� |jd
ddddd� |jddddddd� |jdddddd	� |jddddddd� |jd d!d"d#|d$� |jd%d&d'd(dd)� ||ƒ | ¡ \}}t|ƒ 	dt
 d*¡¡}|j}|d+ksô|d+k�r| ¡  t d,¡ t|||j|j|j|j|j|jd-� d+S ).zRun command.r   )Úget_optparserÚ_add_verbose_flagZSUBJECTS_DIRz-oz--overwriteÚ	overwriteÚ
store_truez%Overwrite previously computed surface)ÚdestÚactionÚhelpz-sz	--subjectÚsubjectzThe name of the subjectÚstr)r   r	   Útypez-mz--mriÚmrizT1.mgzz)The MRI file to process using mkheadsurf.)r   r   Údefaultr	   z-fz--forceÚforcezFForce creation of the surface even if it has some topological defects.z-tz--thresholdÚ	thresholdÚinté   z$Threshold value to use with the MRI.z-dz--subjects-dirÚsubjects_dirzSubjects directory)r   r	   r   z-nz--no-decimateÚno_decimatez2Disable medium and sparse decimations (dense only))r   r	   r   ZSUBJECTNé   )r
   r   r   r   r   r   r   Úverbose)Zmne.commands.utilsr   r   Ú__file__ÚmneZ
get_configÚ
add_optionÚ
parse_argsÚvarsÚgetÚosÚgetenvr   Ú
print_helpÚsysÚexitr   r   r   r   r   r   r   )r   r   Úparserr   ÚoptionsÚargsr
   © r%   úc/var/www/html/bwave/python/venv/lib/python3.8/site-packages/mne/commands/mne_make_scalp_surfaces.pyÚrun   s\    

þ
 ÿÿÿ ÿ
 ÿ
þ
ør'   )	Ú__doc__r   r    r   Zmne.bemr   r'   ÚutilsZrun_command_if_mainr%   r%   r%   r&   Ú<module>	   s   	+