3
Xd                 @   s    d dl mZ dd Zdd ZdS )   )FNIRTc           2   C   s  t t dd dt dddgdt dddgdt d	dd
gdt ddt ddt ddt ddt ddt dddt dddt ddt ddt dd ddt dddt dddt dd dt ddt d dt d!dt d"d dt d#ddt d$dt d%d ddd&t d'ddt d(ddt d)ddt  t d*d ddt d+ddt d,d dt d-dt d.ddt d/dt d0dt d1dt d2d3gd4t d5d6gd4t d7dt d8d9gd4t d:dt d;ddt d<dt d=d ddd&d>,} tj }xRt| j D ]B\}}x6t|j D ]&\}}t|j | ||kstqW qW d S )?Nz--aff=%s)argstr
extensionsz--applyinmask=%s,skip_inmask)r   sepxorz--estint=%sskip_intensity_mappingz--applyrefmask=%sskip_refmaskz%s)r   z--biaslambda=%fz--biasres=%d,%d,%dz--config=%sz
--refderivT)ZnohashZ
usedefaultz	--fout=%sF)r   
hash_filesz	--cout=%sz--numprec=%sz--in=%s)r   r   	mandatoryz--infwhm=%s)r   r   z
--intin=%s)r   copyfilez--inmask=%sz--impinval=%fz--intmod=%sz--intorder=%dz--inwarp=%sz	--jout=%sz--jacrange=%f,%fz--logout=%s)r   r   Zgenfiler   z
--miter=%sz--refout=%sz--intout=%sz--ref=%sz--reffwhm=%sz--refmask=%sz--imprefval=%fz--lambda=%sz--regmod=%sz
--impinm=0z--imprefm=0z--applyinmask=0apply_inmask)r   r   z
--estint=0apply_intensity_mappingz--ssqlambda=0z--applyrefmask=0apply_refmaskz--splineorder=%dz--subsamp=%sz--warpres=%d,%d,%dz	--iout=%s),Zaffine_filer   r   r   argsZbias_regularization_lambdaZbiasfield_resolutionconfig_fileZderive_from_refenviron
field_filefieldcoeff_fileZhessian_precisionin_fileZin_fwhmZin_intensitymap_fileZinmask_fileZ
inmask_valZintensity_mapping_modelZintensity_mapping_orderZinwarp_filejacobian_fileZjacobian_rangelog_fileZmax_nonlin_itermodulatedref_fileout_intensitymap_fileoutput_typeZref_fileZref_fwhmZrefmask_fileZrefmask_valZregularization_lambdaZregularization_modelZskip_implicit_in_maskingZskip_implicit_ref_maskingr   r	   Zskip_lambda_ssqr
   Zspline_orderZsubsampling_schemeZwarp_resolutionwarped_file)dictr   Z
input_speclistitemsgetattrtraitsAssertionError)Z	input_mapinputskeymetadatametakeyvalue r(   ]/var/www/html/virt/lib/python3.6/site-packages/nipype/interfaces/fsl/tests/test_auto_FNIRT.pytest_FNIRT_inputs   s    r*   c           
   C   s   t t d dt d dt d dt d dt d dt  t d dd} tj }xLt| j D ]<\}}x2t|j D ]"\}}t|j | ||kshtqhW qRW d S )N)r   )r   r   r   r   r   r   r   )r   r   Zoutput_specr   r   r    r!   r"   )Z
output_mapoutputsr$   r%   r&   r'   r(   r(   r)   test_FNIRT_outputs   s$    r,   N)
preprocessr   r*   r,   r(   r(   r(   r)   <module>   s    /