#NEWLINE# def resampleInputFilesAndSetLastBasevol( self , prefix_to_change_output = None ) : #NEWLINE# #INDENT# '\n            resample input files using the last transformation, and then\n            set the last basevolume for the inputfile to be the output\n            of the mincresample call\n        ' #NEWLINE# for inputfile in self . inputs : #NEWLINE# #INDENT# likeFileForResample = self . target #NEWLINE# targetFHforResample = self . target #NEWLINE# if ( self . initial_model != None ) : #NEWLINE# #INDENT# if ( self . initial_model [ 1 ] != None ) : #NEWLINE# #INDENT# likeFileForResample = self . initial_model [ 0 ] #NEWLINE# targetFHforResample = self . initial_model [ 0 ] #NEWLINE# #UNINDENT# #UNINDENT# resamplings = ma . mincresampleFileAndMask ( inputfile , targetFHforResample , likeFile = likeFileForResample , argArray = [ '-sinc' ] ) #NEWLINE# self . filesToAvg . append ( resamplings . outputFiles [ 0 ] ) #NEWLINE# self . p . addPipeline ( resamplings . p ) #NEWLINE# inputfile . setLastBasevol ( )