예제 #1
0
def dump_var_list_explained():
    """Writes table of variables (label, desciption, unit) to src/output/varnames.md"""
    tab_table = get_table()
    write_file(tab_table, VARNAMES_FILE)
예제 #2
0
    flag = 0
    for y in lst:
       if x[0:10] in y:
           flag += 1
    return flag 
#rows_with_count = [[r, count_entries(r[0], fst_elements)] for r in rows]
def is_almost_in(x, lst):
    flag = 0
    for y in lst:
       if x[0:10] in y:
           flag += 1
    return flag 
rows_with_count = [[r, is_almost_in(r[0], fst_elements)] for r in rows]
interest = unique([x[0][0] for x in rows_with_count if x[1] > 1 and len(x[0][0]) > 1])
# error on printing to screen - Unicode
write_file("\n".join(interest),"i.txt")


#todo: failures are where too many entries (>1) of spec/cfg dictionaries are found in fst_elements

#get big specification
#see how many times header_dict keys hit fst_elements

header_dict, unit_dict = get_complete_dicts(data_folder)


  

def is_in(x, lst):
    flag = 0
    for y in lst:
예제 #3
0

#rows_with_count = [[r, count_entries(r[0], fst_elements)] for r in rows]
def is_almost_in(x, lst):
    flag = 0
    for y in lst:
        if x[0:10] in y:
            flag += 1
    return flag


rows_with_count = [[r, is_almost_in(r[0], fst_elements)] for r in rows]
interest = unique(
    [x[0][0] for x in rows_with_count if x[1] > 1 and len(x[0][0]) > 1])
# error on printing to screen - Unicode
write_file("\n".join(interest), "i.txt")

#todo: failures are where too many entries (>1) of spec/cfg dictionaries are found in fst_elements

#get big specification
#see how many times header_dict keys hit fst_elements

header_dict, unit_dict = get_complete_dicts(data_folder)


def is_in(x, lst):
    flag = 0
    for y in lst:
        if x in y:
            flag += 1
    return flag
예제 #4
0
def dump_var_list_explained():
    """Writes table of variables (label, desciption, unit) to src/output/varnames.md"""    
    tab_table = get_table()
    write_file(tab_table, VARNAMES_FILE)