init
This commit is contained in:
Binary file not shown.
39
resources/preprocess.py
Normal file
39
resources/preprocess.py
Normal file
@@ -0,0 +1,39 @@
|
||||
log_base = "$E$1"
|
||||
|
||||
weight_1="$I$1"
|
||||
weight_2="$I$2"
|
||||
weight_3="$I$3"
|
||||
weight_4="$I$4"
|
||||
weight_5="$I$5"
|
||||
|
||||
p_k_m = "$A$9"
|
||||
p_k_w = "$B$9"
|
||||
p_k_d = "$C$9"
|
||||
p_s_m = "$D$9"
|
||||
p_s_w = "$E$9"
|
||||
p_s_d = "$F$9"
|
||||
|
||||
base_price_1 = "$B$2"
|
||||
base_price_2 = "$B$3"
|
||||
base_price_3 = "$B$4"
|
||||
base_price_4 = "$B$5"
|
||||
base_price_5 = "$B$6"
|
||||
|
||||
line_no_a, line_no_b, line_no_c = 11, 11, 11
|
||||
for a in range(1, 6):
|
||||
for b in range(1, 6):
|
||||
for c in range(1, 6):
|
||||
weight = weight_1
|
||||
if c == 2: weight = weight_2
|
||||
if c == 3: weight = weight_3
|
||||
if c == 4: weight = weight_4
|
||||
if c == 5: weight = weight_5
|
||||
p1 = "=LOG("+weight+"*"+p_k_m+"*$A$"+str(line_no_a)+"+"+weight+"*"+p_k_w+"*$B$"+str(line_no_b)+"+"+weight+"*"+p_k_d+"*C"+str(line_no_c)+"+"+weight+"*"+p_s_m+"*$D$"+str(line_no_a)+"+"+weight+"*"+p_s_w+"*$E$"+str(line_no_b)+"+"+weight+"*"+p_s_d+"*F"+str(line_no_c)+", "+log_base+") * "+base_price_1
|
||||
p2 = "=LOG("+weight+"*"+p_k_m+"*$A$"+str(line_no_a)+"+"+weight+"*"+p_k_w+"*$B$"+str(line_no_b)+"+"+weight+"*"+p_k_d+"*C"+str(line_no_c)+"+"+weight+"*"+p_s_m+"*$D$"+str(line_no_a)+"+"+weight+"*"+p_s_w+"*$E$"+str(line_no_b)+"+"+weight+"*"+p_s_d+"*F"+str(line_no_c)+", "+log_base+") * "+base_price_2
|
||||
p3 = "=LOG("+weight+"*"+p_k_m+"*$A$"+str(line_no_a)+"+"+weight+"*"+p_k_w+"*$B$"+str(line_no_b)+"+"+weight+"*"+p_k_d+"*C"+str(line_no_c)+"+"+weight+"*"+p_s_m+"*$D$"+str(line_no_a)+"+"+weight+"*"+p_s_w+"*$E$"+str(line_no_b)+"+"+weight+"*"+p_s_d+"*F"+str(line_no_c)+", "+log_base+") * "+base_price_3
|
||||
p4 = "=LOG("+weight+"*"+p_k_m+"*$A$"+str(line_no_a)+"+"+weight+"*"+p_k_w+"*$B$"+str(line_no_b)+"+"+weight+"*"+p_k_d+"*C"+str(line_no_c)+"+"+weight+"*"+p_s_m+"*$D$"+str(line_no_a)+"+"+weight+"*"+p_s_w+"*$E$"+str(line_no_b)+"+"+weight+"*"+p_s_d+"*F"+str(line_no_c)+", "+log_base+") * "+base_price_4
|
||||
p5 = "=LOG("+weight+"*"+p_k_m+"*$A$"+str(line_no_a)+"+"+weight+"*"+p_k_w+"*$B$"+str(line_no_b)+"+"+weight+"*"+p_k_d+"*C"+str(line_no_c)+"+"+weight+"*"+p_s_m+"*$D$"+str(line_no_a)+"+"+weight+"*"+p_s_w+"*$E$"+str(line_no_b)+"+"+weight+"*"+p_s_d+"*F"+str(line_no_c)+", "+log_base+") * "+base_price_5
|
||||
print (p1 + "\t" + p2 + "\t" + p3 + "\t" + p4 + "\t" + p5)
|
||||
line_no_c += 1
|
||||
line_no_b += 5
|
||||
line_no_a += 25
|
||||
Reference in New Issue
Block a user