<s> from __future__ import print_function <EOL> from os . path import abspath <EOL> import csv <EOL> import sys <EOL> """<STR_LIT>""" <EOL> class setMincANTSParams ( object ) : <EOL> def __init__ ( self , fileRes , reg_protocol = None ) : <EOL> self . fileRes = fileRes <EOL> self . regProtocol = reg_protocol <EOL> self . blurs = [ ] <EOL> self . gradient = [ ] <EOL> self . similarityMetric = [ ] <EOL> self . weight = [ ] <EOL> self . radiusHisto = [ ] <EOL> self . transformationModel = [ ] <EOL> self . regularization = [ ] <EOL> self . iterations = [ ] <EOL> self . useMask = [ ] <EOL> self . setupProtocol ( ) <EOL> self . generations = self . getGenerations ( ) <EOL> def setupProtocol ( self ) : <EOL> if self . regProtocol : <EOL> self . memoryRequired = [ <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ] <EOL> try : <EOL> self . setParams ( ) <EOL> except : <EOL> try : <EOL> self . blurs = self . regProtocol . blurs <EOL> self . gradient = self . regProtocol . gradient <EOL> self . similarityMetric = self . regProtocol . similarityMetric <EOL> self . weight = self . regProtocol . weight <EOL> self . radiusHisto = self . regProtocol . radiusHisto <EOL> self . transformationModel = self . regProtocol . transformationModel <EOL> self . regularization = self . regProtocol . regularization <EOL> self . iterations = self . regProtocol . iterations <EOL> self . useMask = self . regProtocol . useMask <EOL> self . memoryRequired = self . regProtocol . memoryRequired <EOL> except : <EOL> print ( "<STR_LIT>" % self . regProtocol ) <EOL> sys . exit ( ) <EOL> else : <EOL> if self . fileRes : <EOL> self . defaultParams ( ) <EOL> else : <EOL> print ( "<STR_LIT>" ) <EOL> print ( "<STR_LIT>" ) <EOL> sys . exit ( ) <EOL> self . generations = self . getGenerations ( ) <EOL> def defaultParams ( self ) : <EOL> """<STR_LIT>""" <EOL> self . blurs = [ [ - <NUM_LIT:1> , self . fileRes ] , [ - <NUM_LIT:1> , self . fileRes ] , [ - <NUM_LIT:1> , self . fileRes ] ] <EOL> self . gradient = [ [ False , True ] , [ False , True ] , [ False , True ] ] <EOL> self . similarityMetric = [ [ "<STR_LIT>" , "<STR_LIT>" ] , [ "<STR_LIT>" , "<STR_LIT>" ] , [ "<STR_LIT>" , "<STR_LIT>" ] ] <EOL> self . weight = [ [ <NUM_LIT:1> , <NUM_LIT:1> ] , [ <NUM_LIT:1> , <NUM_LIT:1> ] , [ <NUM_LIT:1> , <NUM_LIT:1> ] ] <EOL> self . radiusHisto = [ [ <NUM_LIT:3> , <NUM_LIT:3> ] , [ <NUM_LIT:3> , <NUM_LIT:3> ] , [ <NUM_LIT:3> , <NUM_LIT:3> ] ] <EOL> self . transformationModel = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] <EOL> self . regularization = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] <EOL> self . iterations = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] <EOL> self . useMask = [ False , True , True ] <EOL> self . memoryRequired = [ <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ] <EOL> def setParams ( self ) : <EOL> """<STR_LIT>""" <EOL> """<STR_LIT>""" <EOL> inputCsv = open ( abspath ( self . regProtocol ) , '<STR_LIT:rb>' ) <EOL> csvReader = csv . reader ( inputCsv , delimiter = '<STR_LIT:;>' , skipinitialspace = True ) <EOL> params = [ ] <EOL> for r in csvReader : <EOL> params . append ( r ) <EOL> """<STR_LIT>""" <EOL> for p in params : <EOL> if p [ <NUM_LIT:0> ] == "<STR_LIT>" : <EOL> """<STR_LIT>""" <EOL> self . blurs = [ ] <EOL> for i in range ( <NUM_LIT:1> , len ( p ) ) : <EOL> b = [ ] <EOL> for j in p [ i ] . split ( "<STR_LIT:U+002C>" ) : <EOL> b . append ( float ( j ) ) <EOL> self . blurs . append ( b ) <EOL> elif p [ <NUM_LIT:0> ] == "<STR_LIT>" : <EOL> self . gradient = [ ] <EOL> """<STR_LIT>""" <EOL> for i in range ( <NUM_LIT:1> , len ( p ) ) : <EOL> g = [ ] <EOL> for j in p [ i ] . split ( "<STR_LIT:U+002C>" ) : <EOL> if j == "<STR_LIT:True>" or j == "<STR_LIT>" : <EOL> g . append ( True ) <EOL> elif j == "<STR_LIT:False>" or j == "<STR_LIT>" : <EOL> g . append ( False ) <EOL> self . gradient . append ( g ) <EOL> elif p [ <NUM_LIT:0> ] == "<STR_LIT>" : <EOL> self . similarityMetric = [ ] <EOL> """<STR_LIT>""" <EOL> for i in range ( <NUM_LIT:1> , len ( p ) ) : <EOL> g = [ ] <EOL> for j in p [ i ] . split ( "<STR_LIT:U+002C>" ) : <EOL> g . append ( j ) <EOL> self . similarityMetric . append ( g ) <EOL> elif p [ <NUM_LIT:0> ] == "<STR_LIT>" : <EOL> self . weight = [ ] <EOL> """<STR_LIT>""" <EOL> for i in range ( <NUM_LIT:1> , len ( p ) ) : <EOL> w = [ ] <EOL> for j in p [ i ] . split ( "<STR_LIT:U+002C>" ) : <EOL> w . append ( int ( j ) ) <EOL> self . weight . append ( w ) <EOL> elif p [ <NUM_LIT:0> ] == "<STR_LIT>" : <EOL> self . radiusHisto = [ ] <EOL> """<STR_LIT>""" <EOL> for i in range ( <NUM_LIT:1> , len ( p ) ) : <EOL> r = [ ] <EOL> for j in p [ i ] . split ( "<STR_LIT:U+002C>" ) : <EOL> r . append ( int ( j ) ) <EOL> self . radiusHisto . append ( r ) <EOL> elif p [ <NUM_LIT:0> ] == "<STR_LIT>" : <EOL> self . transformationModel = [ ] <EOL> for i in range ( <NUM_LIT:1> , len ( p ) ) : <EOL> self . transformationModel . append ( p [ i ] ) <EOL> elif p [ <NUM_LIT:0> ] == "<STR_LIT>" : <EOL> self . regularization = [ ] <EOL> for i in range ( <NUM_LIT:1> , len ( p ) ) : <EOL> self . regularization . append ( p [ i ] ) <EOL> elif p [ <NUM_LIT:0> ] == "<STR_LIT>" : <EOL> self . iterations = [ ] <EOL> for i in range ( <NUM_LIT:1> , len ( p ) ) : <EOL> self . iterations . append ( p [ i ] ) <EOL> elif p [ <NUM_LIT:0> ] == "<STR_LIT>" : <EOL> self . useMask = [ ] <EOL> for i in range ( <NUM_LIT:1> , len ( p ) ) : <EOL> """<STR_LIT>""" <EOL> if p [ i ] == "<STR_LIT:True>" or p [ i ] == "<STR_LIT>" : <EOL> self . useMask . append ( True ) <EOL> elif p [ i ] == "<STR_LIT:False>" or p [ i ] == "<STR_LIT>" : <EOL> self . useMask . append ( False ) <EOL> elif p [ <NUM_LIT:0> ] == "<STR_LIT>" : <EOL> """<STR_LIT>""" <EOL> self . memoryRequired = ( float ( p [ <NUM_LIT:1> ] ) , float ( p [ <NUM_LIT:2> ] ) , float ( p [ <NUM_LIT:3> ] ) ) <EOL> else : <EOL> print ( "<STR_LIT>" + str ( p [ <NUM_LIT:0> ] ) ) <EOL> print ( "<STR_LIT>" ) <EOL> sys . exit ( ) <EOL> def getGenerations ( self ) : <EOL> arrayLength = len ( self . blurs ) <EOL> errorMsg = "<STR_LIT>" <EOL> if ( len ( self . gradient ) != arrayLength <EOL> or len ( self . similarityMetric ) != arrayLength <EOL> or len ( self . weight ) != arrayLength <EOL> or len ( self . radiusHisto ) != arrayLength <EOL> or len ( self . transformationModel ) != arrayLength <EOL> or len ( self . regularization ) != arrayLength <EOL> or len ( self . iterations ) != arrayLength <EOL> or len ( self . useMask ) != arrayLength ) : <EOL> print ( errorMsg ) <EOL> raise <EOL> else : <EOL> return arrayLength <EOL> class setOneGenMincANTSParams ( setMincANTSParams ) : <EOL> def __init__ ( self , fileRes , reg_protocol = None ) : <EOL> setMincANTSParams . __init__ ( self , fileRes , reg_protocol = reg_protocol ) <EOL> def defaultParams ( self ) : <EOL> """<STR_LIT>""" <EOL> self . blurs = [ [ - <NUM_LIT:1> , self . fileRes ] ] <EOL> self . gradient = [ [ False , True ] ] <EOL> self . similarityMetric = [ [ "<STR_LIT>" , "<STR_LIT>" ] ] <EOL> self . weight = [ [ <NUM_LIT:1> , <NUM_LIT:1> ] ] <EOL> self . radiusHisto = [ [ <NUM_LIT:3> , <NUM_LIT:3> ] ] <EOL> self . transformationModel = [ "<STR_LIT>" ] <EOL> self . regularization = [ "<STR_LIT>" ] <EOL> self . iterations = [ "<STR_LIT>" ] <EOL> self . useMask = [ False ] <EOL> class setNlinMinctraccParams ( object ) : <EOL> def __init__ ( self , fileRes , reg_protocol = None ) : <EOL> self . fileRes = fileRes <EOL> self . regProtocol = reg_protocol <EOL> self . blurs = [ ] <EOL> self . stepSize = [ ] <EOL> self . iterations = [ ] <EOL> self . simplex = [ ] <EOL> self . useGradient = [ ] <EOL> self . optimization = [ ] <EOL> self . w_translations = [ ] <EOL> self . stiffness = [ ] <EOL> self . weight = [ ] <EOL> self . similarity = [ ] <EOL> self . memory = [ ] <EOL> self . setupProtocol ( ) <EOL> self . generations = self . getGenerations ( ) <EOL> def setupProtocol ( self ) : <EOL> if self . regProtocol : <EOL> try : <EOL> self . setParams ( ) <EOL> except : <EOL> try : <EOL> self . blurs = self . regProtocol . blurs <EOL> self . stepSize = self . regProtocol . stepSize <EOL> self . iterations = self . regProtocol . iterations <EOL> self . simplex = self . regProtocol . simplex <EOL> self . useGradient = self . regProtocol . useGradient <EOL> self . optimization = self . regProtocol . optimization <EOL> self . w_translations = self . regProtocol . w_translations <EOL> self . similarity = self . regProtocol . similarity <EOL> self . weight = self . regProtocol . weight <EOL> self . stiffness = self . regProtocol . stiffness <EOL> except : <EOL> print ( "<STR_LIT>" % self . regProtocol ) <EOL> sys . exit ( ) <EOL> else : <EOL> if self . fileRes : <EOL> self . defaultParams ( ) <EOL> else : <EOL> print ( "<STR_LIT>" ) <EOL> print ( "<STR_LIT>" ) <EOL> sys . exit ( ) <EOL> def defaultParams ( self ) : <EOL> """<STR_LIT>""" <EOL> self . blurs = [ self . fileRes * <NUM_LIT> , self . fileRes * <NUM_LIT> , <EOL> self . fileRes * <NUM_LIT> , self . fileRes * <NUM_LIT> , <EOL> self . fileRes * <NUM_LIT> , self . fileRes * <NUM_LIT> , <EOL> self . fileRes * <NUM_LIT> , self . fileRes * <NUM_LIT> , <EOL> self . fileRes * <NUM_LIT> , self . fileRes * <NUM_LIT> , <EOL> self . fileRes , self . fileRes ] <EOL> self . stepSize = [ self . fileRes * <NUM_LIT> , self . fileRes * <NUM_LIT> , <EOL> self . fileRes * <NUM_LIT> , self . fileRes * <NUM_LIT> , <EOL> self . fileRes * <NUM_LIT> , self . fileRes * <NUM_LIT> , <EOL> self . fileRes * <NUM_LIT> , self . fileRes * <NUM_LIT> , <EOL> self . fileRes * <NUM_LIT> , self . fileRes * <NUM_LIT> , <EOL> self . fileRes , self . fileRes ] <EOL> self . iterations = [ <NUM_LIT:20> , <NUM_LIT:20> , <NUM_LIT:6> , <NUM_LIT:6> , <NUM_LIT:8> , <NUM_LIT:8> , <NUM_LIT:8> , <NUM_LIT:8> , <NUM_LIT:8> , <NUM_LIT:8> , <NUM_LIT:8> , <NUM_LIT:8> ] <EOL> self . simplex = [ <NUM_LIT:5> , <NUM_LIT:5> , <NUM_LIT:2> , <NUM_LIT:2> , <NUM_LIT:2> , <NUM_LIT:2> , <NUM_LIT:2> , <NUM_LIT:2> , <NUM_LIT:2> , <NUM_LIT:2> , <NUM_LIT:2> , <NUM_LIT:2> ] <EOL> self . useGradient = [ False , True , False , True , False , True , False , True , False , True , False , True ] <EOL> self . optimization = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , <EOL> "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , <EOL> "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] <EOL> self . w_translations = [ <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ] <EOL> self . stiffness = [ <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ] <EOL> self . weight = [ <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ] <EOL> self . similarity = [ <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ] <EOL> self . memory = [ None ] * <NUM_LIT:12> <EOL> def setParams ( self ) : <EOL> """<STR_LIT>""" <EOL> """<STR_LIT>""" <EOL> inputCsv = open ( abspath ( self . regProtocol ) , '<STR_LIT:rb>' ) <EOL> csvReader = csv . reader ( inputCsv , delimiter = '<STR_LIT:;>' , skipinitialspace = True ) <EOL> params = [ ] <EOL> for r in csvReader : <EOL> params . append ( r ) <EOL> """<STR_LIT>""" <EOL> stiffness_found = <NUM_LIT:0> <EOL> weight_found = <NUM_LIT:0> <EOL> similarity_found = <NUM_LIT:0> <EOL> for p in params : <EOL> if p [ <NUM_LIT:0> ] == "<STR_LIT>" : <EOL> self . blurs = [ ] <EOL> """<STR_LIT>""" <EOL> for i in range ( <NUM_LIT:1> , len ( p ) ) : <EOL> self . blurs . append ( float ( p [ i ] ) ) <EOL> elif p [ <NUM_LIT:0> ] == "<STR_LIT>" : <EOL> self . stepSize = [ ] <EOL> """<STR_LIT>""" <EOL> for i in range ( <NUM_LIT:1> , len ( p ) ) : <EOL> self . stepSize . append ( float ( p [ i ] ) ) <EOL> elif p [ <NUM_LIT:0> ] == "<STR_LIT>" : <EOL> self . iterations = [ ] <EOL> """<STR_LIT>""" <EOL> for i in range ( <NUM_LIT:1> , len ( p ) ) : <EOL> self . iterations . append ( int ( p [ i ] ) ) <EOL> elif p [ <NUM_LIT:0> ] == "<STR_LIT>" : <EOL> self . simplex = [ ] <EOL> """<STR_LIT>""" <EOL> for i in range ( <NUM_LIT:1> , len ( p ) ) : <EOL> self . simplex . append ( float ( p [ i ] ) ) <EOL> elif p [ <NUM_LIT:0> ] == "<STR_LIT>" : <EOL> self . useGradient = [ ] <EOL> """<STR_LIT>""" <EOL> for i in range ( <NUM_LIT:1> , len ( p ) ) : <EOL> if p [ i ] == "<STR_LIT:True>" or p [ i ] == "<STR_LIT>" : <EOL> self . useGradient . append ( True ) <EOL> elif p [ i ] == "<STR_LIT:False>" or p [ i ] == "<STR_LIT>" : <EOL> self . useGradient . append ( False ) <EOL> elif p [ <NUM_LIT:0> ] == "<STR_LIT>" : <EOL> self . optimization = [ ] <EOL> for i in range ( <NUM_LIT:1> , len ( p ) ) : <EOL> self . optimization . append ( p [ i ] ) <EOL> elif p [ <NUM_LIT:0> ] == "<STR_LIT>" : <EOL> self . w_translations = [ ] <EOL> """<STR_LIT>""" <EOL> for i in range ( <NUM_LIT:1> , len ( p ) ) : <EOL> self . w_translations . append ( float ( p [ i ] ) ) <EOL> elif p [ <NUM_LIT:0> ] == "<STR_LIT>" : <EOL> stiffness_found = <NUM_LIT:1> <EOL> self . stiffness = [ ] <EOL> """<STR_LIT>""" <EOL> for i in range ( <NUM_LIT:1> , len ( p ) ) : <EOL> self . stiffness . append ( float ( p [ i ] ) ) <EOL> elif p [ <NUM_LIT:0> ] == "<STR_LIT>" : <EOL> weight_found = <NUM_LIT:1> <EOL> self . weight = [ ] <EOL> """<STR_LIT>""" <EOL> for i in range ( <NUM_LIT:1> , len ( p ) ) : <EOL> self . weight . append ( float ( p [ i ] ) ) <EOL> elif p [ <NUM_LIT:0> ] == "<STR_LIT>" : <EOL> similarity_found = <NUM_LIT:1> <EOL> self . similarity = [ ] <EOL> """<STR_LIT>""" <EOL> for i in range ( <NUM_LIT:1> , len ( p ) ) : <EOL> self . similarity . append ( float ( p [ i ] ) ) <EOL> elif p [ <NUM_LIT:0> ] == "<STR_LIT>" : <EOL> self . memory = map ( float , p [ <NUM_LIT:1> : ] ) <EOL> else : <EOL> print ( "<STR_LIT>" + str ( p [ <NUM_LIT:0> ] ) ) <EOL> print ( "<STR_LIT>" ) <EOL> sys . exit ( ) <EOL> if ( not stiffness_found ) : <EOL> self . stiffness = [ <NUM_LIT> for i in range ( len ( self . stepSize ) ) ] <EOL> if ( not weight_found ) : <EOL> self . weight = [ <NUM_LIT> for i in range ( len ( self . stepSize ) ) ] <EOL> if ( not similarity_found ) : <EOL> self . similarity = [ <NUM_LIT> for i in range ( len ( self . stepSize ) ) ] <EOL> if len ( self . memory ) == <NUM_LIT:0> : <EOL> self . memory = [ None for _ in self . stepSize ] <EOL> def getGenerations ( self ) : <EOL> arrayLength = len ( self . blurs ) <EOL> for x in [ self . stepSize , self . iterations , self . simplex , <EOL> self . useGradient , self . w_translations , self . optimization , <EOL> self . similarity , self . weight , self . stiffness , self . memory ] : <EOL> if len ( x ) != arrayLength : <EOL> print ( "<STR_LIT>" ) <EOL> sys . exit ( ) <EOL> return arrayLength <EOL> class setLSQ12MinctraccParams ( setNlinMinctraccParams ) : <EOL> def __init__ ( self , fileRes , subject_matter = None , reg_protocol = None ) : <EOL> self . subject_matter = subject_matter <EOL> setNlinMinctraccParams . __init__ ( self , fileRes , reg_protocol = reg_protocol ) <EOL> def setupProtocol ( self ) : <EOL> if self . subject_matter : <EOL> self . defaultParams ( ) <EOL> else : <EOL> super ( setLSQ12MinctraccParams , self ) . setupProtocol ( ) <EOL> def defaultParams ( self ) : <EOL> """<STR_LIT>""" <EOL> blurfactors = [ <NUM_LIT:5> , <NUM_LIT> / <NUM_LIT> , <NUM_LIT> ] <EOL> stepfactors = [ <NUM_LIT> / <NUM_LIT> , <NUM_LIT> / <NUM_LIT> , <NUM_LIT> ] <EOL> simplexfactors = [ <NUM_LIT:50> , <NUM_LIT> , <NUM_LIT> / <NUM_LIT> ] <EOL> if ( self . subject_matter == "<STR_LIT>" ) : <EOL> self . blurs = [ <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ] <EOL> self . stepSize = [ <NUM_LIT:1> , <NUM_LIT:0.5> , <NUM_LIT:1.0> / <NUM_LIT> ] <EOL> self . simplex = [ <NUM_LIT:3> , <NUM_LIT> , <NUM_LIT:1> ] <EOL> else : <EOL> self . blurs = [ i * self . fileRes for i in blurfactors ] <EOL> self . stepSize = [ i * self . fileRes for i in stepfactors ] <EOL> self . simplex = [ i * self . fileRes for i in simplexfactors ] <EOL> self . useGradient = [ False , True , False ] <EOL> self . w_translations = [ <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ] <EOL> def getGenerations ( self ) : <EOL> arrayLength = len ( self . blurs ) <EOL> errorMsg = "<STR_LIT>" <EOL> if ( len ( self . stepSize ) != arrayLength <EOL> or len ( self . useGradient ) != arrayLength <EOL> or len ( self . simplex ) != arrayLength <EOL> or len ( self . w_translations ) != arrayLength ) : <EOL> print ( errorMsg ) <EOL> sys . exit ( ) <EOL> else : <EOL> return arrayLength <EOL> class setLSQ6MinctraccParams ( setLSQ12MinctraccParams ) : <EOL> def __init__ ( self , fileRes , initial_transform = "<STR_LIT>" , reg_protocol = None ) : <EOL> self . initial_transform = initial_transform <EOL> setLSQ12MinctraccParams . __init__ ( self , fileRes , reg_protocol = reg_protocol ) <EOL> def defaultParams ( self ) : <EOL> """<STR_LIT>""" <EOL> if self . initial_transform == "<STR_LIT>" : <EOL> blurfactors = [ <NUM_LIT> , <NUM_LIT:9> , <NUM_LIT:4> ] <EOL> simplexfactors = [ <NUM_LIT> , <NUM_LIT> , <NUM_LIT:16> ] <EOL> stepfactors = [ <NUM_LIT> , <NUM_LIT:9> , <NUM_LIT:4> ] <EOL> gradientdefaults = [ False , True , False ] <EOL> translations = [ <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ] <EOL> elif self . initial_transform == "<STR_LIT>" : <EOL> blurfactors = [ <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT:9> , <NUM_LIT:4> ] <EOL> simplexfactors = [ <NUM_LIT> , <NUM_LIT:64> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT:16> ] <EOL> stepfactors = [ <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT:9> , <NUM_LIT:4> ] <EOL> gradientdefaults = [ False , False , False , True , False ] <EOL> translations = [ <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ] <EOL> else : <EOL> print ( "<STR_LIT>" + str ( self . initial_transform ) ) <EOL> print ( "<STR_LIT>" ) <EOL> sys . exit ( ) <EOL> self . blurs = [ i * self . fileRes for i in blurfactors ] <EOL> self . simplex = [ i * self . fileRes for i in simplexfactors ] <EOL> self . stepSize = [ i * self . fileRes for i in stepfactors ] <EOL> self . useGradient = gradientdefaults <EOL> self . w_translations = translations </s>
