Esempio n. 1
0
def get_hostnames(config_file):
    from select_columns import extract_column_from_file
    host_column = extract_column_from_file(config_file, 3)
    hosts = {}
    for h in host_column:
        hosts[h] = 1
    return list(hosts.keys())
Esempio n. 2
0
def get_hostnames(config_file):
    from select_columns import extract_column_from_file
    host_column = extract_column_from_file(config_file, 3)
    hosts = {}
    for h in host_column:
        hosts[h] = 1
    return list(hosts.keys())
Esempio n. 3
0
def output_file_stats(output_filename, input_filename, col, prefix):
    from select_columns import  extract_column_from_file
    values = extract_column_from_file(input_filename, col)
    from stats import get_stat_in_tuples
    output_tuples = get_stat_in_tuples(values, prefix)
    from write_array_to_file import write_tuple_array
    write_tuple_array(output_tuples, output_filename, p = True)
Esempio n. 4
0
def output_file_stats(output_filename, input_filename, col, prefix):
    from select_columns import extract_column_from_file
    values = extract_column_from_file(input_filename, col)
    from stats import get_stat_in_tuples
    output_tuples = get_stat_in_tuples(values, prefix)
    from write_array_to_file import write_tuple_array
    write_tuple_array(output_tuples, output_filename, p=True)
Esempio n. 5
0
File: stats.py Progetto: npstar/gns
def print_stats(filename, col):
    from select_columns import extract_column_from_file

    values = extract_column_from_file(filename, col)
    print get_stats_with_names(values)
Esempio n. 6
0
def write_cdf(filename, col_no, output_filename):
    values = extract_column_from_file(filename, col_no)
    #print values
    cdf_values = get_cdf(values)
    #print cdf_values
    write_tuple_array(cdf_values, output_filename, p=True)
Esempio n. 7
0
def write_cdf(filename, col_no, output_filename):
    values = extract_column_from_file(filename, col_no)
    #print values
    cdf_values = get_cdf(values)
    #print cdf_values
    write_tuple_array(cdf_values, output_filename, p = True)
Esempio n. 8
0
def print_stats(filename, col):
    from select_columns import extract_column_from_file

    values = extract_column_from_file(filename, col)
    print get_stats_with_names(values)