3
Yd                 @   s    d dl mZ dd Zdd ZdS )   )
NewSegmentc              C   s   t t ddt ddddt ddt  t ddt  t ddt d	dt  t d
ddt ddt ddd} tj }xLt| j D ]<\}}x2t|j D ]"\}}t|j | ||kstqW qxW d S )Nzwarp.affreg)fieldFZchannelT)copyfiler   	mandatory)
usedefaultz	warp.sampZtissue8)Zmin_verr   zwarp.regz
warp.write)Zaffine_regularizationZchannel_filesZchannel_infoZ
matlab_cmdZmfilepathsZsampling_distanceZtissuesZuse_mcrZuse_v8structZwarping_regularizationZwrite_deformation_fields)dictr   Z
input_speclistitemsgetattrtraitsAssertionError)Z	input_mapinputskeymetadatametakeyvalue r   b/var/www/html/virt/lib/python3.6/site-packages/nipype/interfaces/spm/tests/test_auto_NewSegment.pytest_NewSegment_inputs   s:    r   c              C   s   t t  t  t  t  t  t  t  t  t  d	} tj }xLt| j D ]<\}}x2t|j D ]"\}}t|j | ||ksXtqXW qBW d S )N)	Zbias_corrected_imagesZbias_field_imagesZdartel_input_imagesZforward_deformation_fieldZinverse_deformation_fieldZmodulated_class_imagesZnative_class_imagesZnormalized_class_imagesZtransformation_mat)r	   r   Zoutput_specr
   r   r   r   r   )Z
output_mapoutputsr   r   r   r   r   r   r   test_NewSegment_outputs0   s    
r   N)
preprocessr   r   r   r   r   r   r   <module>   s   +