Variables | |
parser = ap() | |
type | |
str | |
help | |
default | |
args = parser.parse_args() | |
list | all_files = [i.split("/")[-1] for i in ls(args.p + "*")] |
list | files = [] |
list | global_meds = [] |
runs = set([i.replace(".txt", "").split("_")[-1] for i in global_meds]) | |
f0 = open(args.p + 'global_median_0_' + r + '.txt', 'r') | |
f1 = open(args.p + 'global_median_1_' + r + '.txt', 'r') | |
f2 = open(args.p + 'global_median_2_' + r + '.txt', 'r') | |
info_0 = f0.readlines()[0] | |
info_1 = f1.readlines()[0] | |
info_2 = f2.readlines()[0] | |
run_num = info_0.split()[0] | |
norm_0 = info_0.split()[1] | |
norm_err_0 = str(float(norm_0)/10.) | |
norm_1 = info_1.split()[1] | |
norm_err_1 = str(float(norm_1)/10.) | |
norm_2 = info_2.split()[1] | |
norm_err_2 = str(float(norm_2)/10.) | |
list | output |
outfile = open('globalmedians_run' + run_num + '.csv', 'w') | |
Definition at line 14 of file make_norm_csv.py.
make_norm_csv.args = parser.parse_args() |
Definition at line 10 of file make_norm_csv.py.
make_norm_csv.default |
Definition at line 9 of file make_norm_csv.py.
make_norm_csv.f0 = open(args.p + 'global_median_0_' + r + '.txt', 'r') |
Definition at line 25 of file make_norm_csv.py.
make_norm_csv.f1 = open(args.p + 'global_median_1_' + r + '.txt', 'r') |
Definition at line 26 of file make_norm_csv.py.
make_norm_csv.f2 = open(args.p + 'global_median_2_' + r + '.txt', 'r') |
Definition at line 27 of file make_norm_csv.py.
list make_norm_csv.files = [] |
Definition at line 15 of file make_norm_csv.py.
list make_norm_csv.global_meds = [] |
Definition at line 16 of file make_norm_csv.py.
make_norm_csv.help |
Definition at line 9 of file make_norm_csv.py.
make_norm_csv.info_0 = f0.readlines()[0] |
Definition at line 29 of file make_norm_csv.py.
make_norm_csv.info_1 = f1.readlines()[0] |
Definition at line 30 of file make_norm_csv.py.
make_norm_csv.info_2 = f2.readlines()[0] |
Definition at line 31 of file make_norm_csv.py.
make_norm_csv.norm_0 = info_0.split()[1] |
Definition at line 37 of file make_norm_csv.py.
make_norm_csv.norm_1 = info_1.split()[1] |
Definition at line 41 of file make_norm_csv.py.
make_norm_csv.norm_2 = info_2.split()[1] |
Definition at line 44 of file make_norm_csv.py.
Definition at line 38 of file make_norm_csv.py.
Definition at line 42 of file make_norm_csv.py.
Definition at line 45 of file make_norm_csv.py.
Definition at line 55 of file make_norm_csv.py.
list make_norm_csv.output |
Definition at line 48 of file make_norm_csv.py.
make_norm_csv.parser = ap() |
Definition at line 7 of file make_norm_csv.py.
make_norm_csv.run_num = info_0.split()[0] |
Definition at line 36 of file make_norm_csv.py.
make_norm_csv.runs = set([i.replace(".txt", "").split("_")[-1] for i in global_meds]) |
Definition at line 21 of file make_norm_csv.py.
make_norm_csv.str |
Definition at line 9 of file make_norm_csv.py.
make_norm_csv.type |
Definition at line 9 of file make_norm_csv.py.