#NEWLINE# def load_tag_files_options( options ) : #NEWLINE# #INDENT# 'From the options, load treatment tags and control tags (if available).\n\n    ' #NEWLINE# options . info ( '#1 read treatment tags...' ) #NEWLINE# tp = options . parser ( options . tfile [ 0 ] , buffer_size = options . buffer_size ) #NEWLINE# if ( not options . tsize ) : #NEWLINE# #INDENT# ttsize = tp . tsize ( ) #NEWLINE# options . tsize = ttsize #NEWLINE# #UNINDENT# treat = tp . build_fwtrack ( ) #NEWLINE# if ( len ( options . tfile ) > 1 ) : #NEWLINE# #INDENT# for tfile in options . tfile [ 1 : ] : #NEWLINE# #INDENT# tp = options . parser ( tfile , buffer_size = options . buffer_size ) #NEWLINE# treat = tp . append_fwtrack ( treat ) #NEWLINE# #UNINDENT# #UNINDENT# treat . finalize ( ) #NEWLINE# if options . cfile : #NEWLINE# #INDENT# options . info ( '#1.2 read input tags...' ) #NEWLINE# control = options . parser ( options . cfile [ 0 ] , buffer_size = options . buffer_size ) . build_fwtrack ( ) #NEWLINE# if ( len ( options . cfile ) > 1 ) : #NEWLINE# #INDENT# for cfile in options . cfile [ 1 : ] : #NEWLINE# #INDENT# cp = options . parser ( cfile , buffer_size = options . buffer_size ) #NEWLINE# control = cp . append_fwtrack ( control ) #NEWLINE# #UNINDENT# #UNINDENT# control . finalize ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# control = None #NEWLINE# #UNINDENT# options . info ( ( '#1 tag size is determined as %d bps' % options . tsize ) ) #NEWLINE# return ( treat , control )