#NEWLINE# def get_tier_name( tier , builder ) : #NEWLINE# #INDENT# if ( len ( tier ) == 1 ) : #NEWLINE# #INDENT# return ( 'r%s' % ( tier [ 0 ] , ) ) #NEWLINE# #UNINDENT# if ( len ( tier ) == 2 ) : #NEWLINE# #INDENT# return ( 'r%sz%s' % ( tier [ 0 ] , tier [ 1 ] ) ) #NEWLINE# #UNINDENT# if ( len ( tier ) == 3 ) : #NEWLINE# #INDENT# return ( 'r%sz%s-%s' % ( tier [ 0 ] , tier [ 1 ] , tier [ 2 ] ) ) #NEWLINE# #UNINDENT# if ( len ( tier ) == 4 ) : #NEWLINE# #INDENT# device = ( builder . devs [ tier [ 3 ] ] or { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# return ( 'r%sz%s-%s/%s' % ( tier [ 0 ] , tier [ 1 ] , tier [ 2 ] , device . get ( 'device' , ( 'IDd%s' % tier [ 3 ] ) ) ) )