#NEWLINE# def main( args = None ) : #NEWLINE# #INDENT# if ( not args ) : #NEWLINE# #INDENT# args = sys . argv [ 1 : ] #NEWLINE# #UNINDENT# file_mask = '' #NEWLINE# parser = get_parser ( ) #NEWLINE# arguments = parser . parse ( sys . argv [ 1 : ] ) #NEWLINE# fname_in = arguments [ '-i' ] #NEWLINE# fname_bvals = arguments [ '-bval' ] #NEWLINE# fname_bvecs = arguments [ '-bvec' ] #NEWLINE# prefix = arguments [ '-o' ] #NEWLINE# method = arguments [ '-method' ] #NEWLINE# if ( '-m' in arguments ) : #NEWLINE# #INDENT# file_mask = arguments [ '-m' ] #NEWLINE# #UNINDENT# param . verbose = int ( arguments [ '-v' ] ) #NEWLINE# if ( not compute_dti ( fname_in , fname_bvals , fname_bvecs , prefix , fname_bvals , file_mask ) ) : #NEWLINE# #INDENT# printv ( 'ERROR in compute_dti()' , 1 , 'error' )