#NEWLINE# def _write_6bc( self , i , j , f_sfr , cols = [ ] ) : #NEWLINE# #INDENT# icalc = self . segment_data [ i ] [ j ] [ 1 ] #NEWLINE# fmts = _fmt_string_list ( self . segment_data [ i ] [ cols ] [ j ] ) #NEWLINE# ( hcond , thickm , elevupdn , width , depth , thts , thti , eps , uhc ) = [ ( 0 if ( v == self . default_value ) else v ) for v in self . segment_data [ i ] [ cols ] [ j ] ] #NEWLINE# if ( ( self . isfropt in [ 0 , 4 , 5 ] ) and ( icalc <= 0 ) ) : #NEWLINE# #INDENT# f_sfr . write ( ( ' ' . join ( fmts [ 0 : 5 ] ) . format ( hcond , thickm , elevupdn , width , depth ) + ' ' ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( self . isfropt in [ 0 , 4 , 5 ] ) and ( icalc == 1 ) ) : #NEWLINE# #INDENT# f_sfr . write ( ( fmts [ 0 ] . format ( hcond ) + ' ' ) ) #NEWLINE# if ( i == 0 ) : #NEWLINE# #INDENT# f_sfr . write ( ( ' ' . join ( fmts [ 1 : 4 ] ) . format ( thickm , elevupdn , width ) + ' ' ) ) #NEWLINE# f_sfr . write ( ( ' ' . join ( fmts [ 5 : 8 ] ) . format ( thts , thti , eps ) + ' ' ) ) #NEWLINE# if ( self . isfropt == 5 ) : #NEWLINE# #INDENT# f_sfr . write ( ( fmts [ 8 ] . format ( uhc ) + ' ' ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( self . isfropt in [ 0 , 4 , 5 ] ) and ( icalc >= 2 ) ) : #NEWLINE# #INDENT# f_sfr . write ( ( fmts [ 0 ] . format ( hcond ) + ' ' ) ) #NEWLINE# if ( ( self . isfropt in [ 4 , 5 ] ) and ( i > 0 ) and ( icalc == 2 ) ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# f_sfr . write ( ( ' ' . join ( fmts [ 1 : 3 ] ) . format ( thickm , elevupdn ) + ' ' ) ) #NEWLINE# if ( ( self . isfropt in [ 4 , 5 ] ) and ( icalc == 2 ) and ( i == 0 ) ) : #NEWLINE# #INDENT# f_sfr . write ( ( ' ' . join ( fmts [ 3 : 6 ] ) . format ( thts , thti , eps ) + ' ' ) ) #NEWLINE# if ( self . isfropt == 5 ) : #NEWLINE# #INDENT# f_sfr . write ( ( fmts [ 8 ] . format ( uhc ) + ' ' ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( self . isfropt == 1 ) and ( icalc <= 1 ) ) : #NEWLINE# #INDENT# f_sfr . write ( ( fmts [ 3 ] . format ( width ) + ' ' ) ) #NEWLINE# if ( icalc <= 0 ) : #NEWLINE# #INDENT# f_sfr . write ( ( fmts [ 4 ] . format ( depth ) + ' ' ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( self . isfropt in [ 2 , 3 ] ) and ( icalc <= 1 ) ) : #NEWLINE# #INDENT# if ( i > 0 ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# f_sfr . write ( ( fmts [ 3 ] . format ( width ) + ' ' ) ) #NEWLINE# if ( icalc <= 0 ) : #NEWLINE# #INDENT# f_sfr . write ( ( fmts [ 4 ] . format ( depth ) + ' ' ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# f_sfr . write ( '\n' )