Namespaces | Variables
make_norm_csv.py File Reference

Go to the source code of this file.

Namespaces

 make_norm_csv
 

Variables

 make_norm_csv.parser = ap()
 
 make_norm_csv.type
 
 make_norm_csv.str
 
 make_norm_csv.help
 
 make_norm_csv.default
 
 make_norm_csv.args = parser.parse_args()
 
list make_norm_csv.all_files = [i.split("/")[-1] for i in ls(args.p + "*")]
 
list make_norm_csv.files = []
 
list make_norm_csv.global_meds = []
 
 make_norm_csv.runs = set([i.replace(".txt", "").split("_")[-1] for i in global_meds])
 
 make_norm_csv.f0 = open(args.p + 'global_median_0_' + r + '.txt', 'r')
 
 make_norm_csv.f1 = open(args.p + 'global_median_1_' + r + '.txt', 'r')
 
 make_norm_csv.f2 = open(args.p + 'global_median_2_' + r + '.txt', 'r')
 
 make_norm_csv.info_0 = f0.readlines()[0]
 
 make_norm_csv.info_1 = f1.readlines()[0]
 
 make_norm_csv.info_2 = f2.readlines()[0]
 
 make_norm_csv.run_num = info_0.split()[0]
 
 make_norm_csv.norm_0 = info_0.split()[1]
 
 make_norm_csv.norm_err_0 = str(float(norm_0)/10.)
 
 make_norm_csv.norm_1 = info_1.split()[1]
 
 make_norm_csv.norm_err_1 = str(float(norm_1)/10.)
 
 make_norm_csv.norm_2 = info_2.split()[1]
 
 make_norm_csv.norm_err_2 = str(float(norm_2)/10.)
 
list make_norm_csv.output
 
 make_norm_csv.outfile = open('globalmedians_run' + run_num + '.csv', 'w')