#NEWLINE# def __init__( self , inputFiles , options , mask = None , inorm_const = 1000 , method = '-ratioOfMedians' , resampleINORMtoLSQ6 = False , initial_model = None , targetForLSQ6 = None ) : #NEWLINE# #INDENT# self . p = Pipeline ( ) #NEWLINE# self . options = options #NEWLINE# self . inputs = inputFiles #NEWLINE# self . masks = None #NEWLINE# self . inormconst = inorm_const #NEWLINE# self . method = method #NEWLINE# self . resampleINORMtoLSQ6 = resampleINORMtoLSQ6 #NEWLINE# self . initial_model = initial_model #NEWLINE# self . targetForLSQ6 = targetForLSQ6 #NEWLINE# self . INORM = [ ] #NEWLINE# self . INORMLSQ6 = [ ] #NEWLINE# self . INORMLSQ6Masks = [ ] #NEWLINE# self . inputFilenames = [ ] #NEWLINE# if rf . isFileHandler ( self . inputs [ 0 ] ) : #NEWLINE# #INDENT# for inputFH in self . inputs : #NEWLINE# #INDENT# self . inputFilenames . append ( inputFH . getLastBasevol ( ) ) #NEWLINE# #UNINDENT# self . setINORMGroupToInputs ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# for inputName in self . inputs : #NEWLINE# #INDENT# self . inputFilenames . append ( inputName ) #NEWLINE# #UNINDENT# #UNINDENT# if ( mask != None ) : #NEWLINE# #INDENT# self . masks = ( [ mask ] * len ( self . inputs ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . inputs [ 0 ] . getMask ( ) != None ) : #NEWLINE# #INDENT# masks = [ ] #NEWLINE# for i in range ( len ( self . inputs ) ) : #NEWLINE# #INDENT# masks . append ( self . inputs [ i ] . getMask ( ) ) #NEWLINE# #UNINDENT# self . masks = masks #NEWLINE# #UNINDENT# #UNINDENT# if rf . isFileHandler ( self . inputs [ 0 ] ) : #NEWLINE# #INDENT# self . setINORMGroupToInputs ( ) #NEWLINE# #UNINDENT# self . runNormalization ( ) #NEWLINE# if self . resampleINORMtoLSQ6 : #NEWLINE# #INDENT# self . resampleINORMtoLSQ6Space ( ) #NEWLINE# #UNINDENT# if rf . isFileHandler ( self . inputs [ 0 ] ) : #NEWLINE# #INDENT# self . setINORMasLastBaseVolume ( )