3
Yd                 @   s    d dl mZ dd Zdd ZdS )   )EstimateModelc              C   s   t t dddt  t  t ddt  t dd dddt  t dddt d	d
d	} tj }xLt| j D ]<\}}x2t|j D ]"\}}t|j | ||ksvtqvW q`W d S )NmethodT)field	mandatory)
usedefaultZspmmat)copyfile
extensionsr   r   8)Zmin_verr   write_residuals)r   )	Zestimation_methodflagsZ
matlab_cmdZmfilepathsspm_mat_fileZuse_mcrZuse_v8structr
   )dictr   Z
input_speclistitemsgetattrtraitsAssertionError)Z	input_mapinputskeymetadatametakeyvalue r   e/var/www/html/virt/lib/python3.6/site-packages/nipype/interfaces/spm/tests/test_auto_EstimateModel.pytest_EstimateModel_inputs   s0    r   c              C   s   t t  t  t ddddgdt  t  t  t ddddgdt ddddgdt ddddgdt  t d dd} tj }xLt| j D ]<\}}x2t|j D ]"\}}t|j | ||kstqW q~W d S )Nz.hdrz.imgz.img.gzz.nii)r   )ZARcoefZCbetasZRPVimageZSDbetasZSDerrorZbeta_imageslabelsZ
mask_imageZresidual_imageZresidual_imagesr   )r   r   Zoutput_specr   r   r   r   r   )Z
output_mapoutputsr   r   r   r   r   r   r   test_EstimateModel_outputs'   s*    r   N)modelr   r   r   r   r   r   r   <module>   s   "