#NEWLINE# def test( path_data ) : #NEWLINE# #INDENT# folder_data = [ 'mt/' , 'label/atlas' ] #NEWLINE# file_data = [ 'mtr.nii.gz' ] #NEWLINE# cmd = ( ( ( ( ( ( ( ( ( ( ( ( 'sct_extract_metric -i ' + path_data ) + folder_data [ 0 ] ) + file_data [ 0 ] ) + ' -f ' ) + path_data ) + folder_data [ 0 ] ) + folder_data [ 1 ] ) + ' -method wath ' ) + ' -vert 1:3' ) + ' -o quantif_' ) + file_data [ 0 ] ) + ' -v 1' ) #NEWLINE# return commands . getstatusoutput ( cmd )