#NEWLINE# def newGroup( self , inputVolume = None , mask = None , groupName = None ) : #NEWLINE# #INDENT# '\n            create a new set of grouped files\n            \n            Assumption: if you specify an inputVolume, and you want\n            to add a mask to it, you will have to explicitly set it using the mask\n            parameter\n        ' #NEWLINE# groupIndex = ( self . currentGroupIndex + 1 ) #NEWLINE# if ( not inputVolume ) : #NEWLINE# #INDENT# inputVolume = self . getLastBasevol ( ) #NEWLINE# #UNINDENT# if ( not mask ) : #NEWLINE# #INDENT# mask = self . getMask ( ) #NEWLINE# #UNINDENT# if ( not groupName ) : #NEWLINE# #INDENT# groupName = groupIndex #NEWLINE# #UNINDENT# self . groupedFiles . append ( RegistrationGroupedFiles ( inputVolume , mask ) ) #NEWLINE# self . groupNames [ groupIndex ] = groupName #NEWLINE# self . currentGroupIndex = groupIndex