Ignore:
Timestamp:
May 5, 2012, 4:32:26 PM (7 years ago)
Author:
ksherdy
Message:

Refactored build process. Added log2 support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/symbol_table/test/st_test_file_generator.py

    r1973 r2069  
    77# 1. Output Test File
    88#
    9 #    st_test_UNIFORM_(L_O_U)_(L_O_U)_(L_O_U)_Ag_Mg, where for each (L_O_U),
     9#    L_O_U_L_O_U_L_O_U_Ag_Mg.test, where for each (L_O_U),
    1010
    1111#    * UNIFORM denotes that equal counts of symbols of each length L are generated
     
    2121# 2. Meta Results File
    2222#
    23 #    st_meta_test_UNIFORM_(L_O_U)_(L_O_U)_(L_O_U)_Ag_Mg
     23#    L_O_U_L_O_U_L_O_U_Ag_Mg.meta
    2424#
    2525#    This file contains start position, length and gap distance for each symbol contains in the generated test file, as
     
    4343    testFileHandle = 0   
    4444    def __init__(self,base_filename):   
    45         self.testFileHandle = open("st_test_UNIFORM_"+base_filename, 'w')
     45        self.testFileHandle = open(base_filename+".test", 'w')
    4646       
    4747    def appendUniqueSymbolAndGap(self, symbol_string, gap):   
     
    6161            unique_sym_pos.append([])
    6262
    63         self.logFileHandle = open ("st_meta_test_UNIFORM_"+base_filename, 'w')
     63        self.logFileHandle = open (base_filename+".meta", 'w')
    6464        self.logFileHandle.write("Average Gap Distance: " + str(avg_gap) + "\nMaximum Gap Distance: " + str(max_gap))
    6565
     
    228228        base_filename = ""
    229229        for lst in symbol_specs:
    230             base_filename += "(" + str(lst[0]) + "_" + str(lst[1]) + "_" + str(lst[2]) + ")_"
    231         base_filename += str(arguments[num_args-2]) + "_" + str(arguments[num_args-1])
     230            base_filename += str(lst[0]) + "_" + str(lst[1]) + "_" + str(lst[2])
     231        base_filename += "___" + str(arguments[num_args-2]) + "_" + str(arguments[num_args-1])
    232232
    233233        # calculate total symbol count
Note: See TracChangeset for help on using the changeset viewer.