3
Yd                 @   s    d dl mZ dd Zdd ZdS )   )RealignUnwarpc               C   sf  t t ddt ddt ddt dddddt d	dt d
ddddt ddt ddt dddt ddt ddt ddddt ddt  t ddt dddt  t dd ddt ddt ddt ddt ddt dddddt ddt d dt  t d!dd"t d d#d$t d%dd&} tj }xRt| j D ]B\}}x6t|j D ]&\}}t|j | ||ks2tq2W qW d S )'Nzuweoptions.basfcn)fieldzuweoptions.fotzuweoptions.jmzuweoptions.noi   T)r   maxlenZminlen
usedefaultzuweoptions.remzuweoptions.lambdazuweoptions.regorderzuweoptions.sotzuweoptions.expround)r   r   zuweoptions.uwfwhmzeoptions.fwhmz
data.scans)copyfiler   	mandatoryzeoptions.einterp)r   zuwroptions.prefixFzdata.pmscan)r   
extensionsr   zeoptions.qualityzeoptions.rtmzuwroptions.rinterpzuwroptions.maskzuwroptions.uwwhichr   zuwroptions.wrapzeoptions.sep8)Zmin_verr   zeoptions.weight)r	   r   zeoptions.ewrap)Zest_basis_funcZest_first_order_effectsZest_jacobian_deformationsZest_num_of_iterationsZest_re_est_mov_parZest_reg_factorZest_reg_orderZest_second_order_effectsZest_taylor_expansion_pointZest_unwarp_fwhmZfwhmZin_filesZinterpZ
matlab_cmdZmfileZ
out_prefixpathsZ	phase_mapZqualityZregister_to_meanZreslice_interpZreslice_maskZreslice_whichZreslice_wrapZ
separationZuse_mcrZuse_v8structZ
weight_imgwrap)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_RealignUnwarp.pytest_RealignUnwarp_inputs   s    r   c              C   sv   t t d dt  t  t  d} tj }xLt| j D ]<\}}x2t|j D ]"\}}t|j | ||ksHtqHW q2W d S )N)r	   )Z
mean_imageZmodified_in_filesZrealigned_unwarped_filesZrealignment_parameters)r   r   Zoutput_specr   r   r   r   r   )Z
output_mapoutputsr   r   r   r   r   r   r   test_RealignUnwarp_outputsq   s    
r   N)
preprocessr   r   r   r   r   r   r   <module>   s   l