#NEWLINE# def createLSQ6Transformation( self ) : #NEWLINE# #INDENT# '\n            Assumption: setLSQ6MinctraccParams has been called prior to running. \n        ' #NEWLINE# for i in range ( self . generations ) : #NEWLINE# #INDENT# self . p . addStage ( ma . blur ( self . target , self . blurs [ i ] , gradient = True ) ) #NEWLINE# for inputfile in self . inputs : #NEWLINE# #INDENT# self . p . addStage ( ma . blur ( inputfile , self . blurs [ i ] , gradient = True ) ) #NEWLINE# #UNINDENT# #UNINDENT# for inputfile in self . inputs : #NEWLINE# #INDENT# for i in range ( self . generations ) : #NEWLINE# #INDENT# mt = ma . minctracc ( inputfile , self . target , blur = self . blurs [ inputfile ] , simplex = self . simplex [ i ] , step = self . stepSize [ i ] , gradient = self . useGradient [ i ] , w_translations = self . w_translations [ i ] , linearparam = self . linearParams [ i ] ) #NEWLINE# self . p . addStage ( mt )