Example #1
0
            #its a RE
            descriptions = myDB.get_filenames_with_re(args.get)
            x_values = []; y_values = []
            x_total_proc_values = []; y_total_proc_values = []

            for d in descriptions:
                values = myDB.get_original_data(d)
                x_values += values[0]
                y_values += values[1]

                xps, yps = myDB.get_processed_data(d)
                x_total_proc_values += xps
                y_total_proc_values += yps
		    
		print x_values, y_values
    #Now we can do something with this values...
    if args.put:
        if path.isfile(args.put):
            myDB.insert_data(args.put)
        else:
            insert_multiple_files(args.put)
    if args.get_lineal:
        std, slope, intercept, r_value, p_value = myDB.get_lineal_regression(args.get_lineal)
        #do something with this values
        print """
            std : %1.8f 
            slope : %1.8f 
            intercept : %1.8f
            r_value : %1.8f 
            p_value : %1.8f """ % (std, slope, intercept, r_value, p_value)