#NEWLINE# def setLastBasevol( self , newBaseVol = None , setToOriginalInput = False ) : #NEWLINE# #INDENT# if ( setToOriginalInput == True ) : #NEWLINE# #INDENT# self . groupedFiles [ self . currentGroupIndex ] . basevol = self . groupedFiles [ self . currentGroupIndex ] . origGroupVol #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( not newBaseVol ) : #NEWLINE# #INDENT# if ( not self . groupedFiles [ self . currentGroupIndex ] . lastresampled ) : #NEWLINE# #INDENT# print ( 'Error: setLastBasevol called without a newBaseVol and no lastresampled file exists. Unable to determine which file to set as the LastBasevol.' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . groupedFiles [ self . currentGroupIndex ] . basevol = self . groupedFiles [ self . currentGroupIndex ] . lastresampled #NEWLINE# if self . groupedFiles [ self . currentGroupIndex ] . lastresampledmask : #NEWLINE# #INDENT# self . setMask ( self . groupedFiles [ self . currentGroupIndex ] . lastresampledmask ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . groupedFiles [ self . currentGroupIndex ] . basevol = setToOriginalInput