Browse Source

[july] step4 no of tree

master
sipp11 10 years ago
parent
commit
3105568770
  1. 5
      s4.py

5
s4.py

@ -64,7 +64,10 @@ def produce(match_all):
is_matched = 1 if ii.lower() == los.los[lo]['model'].lower() else 0
# [July 1] some lo doesn't have that data, blank then
july_1_col = step_3_data[lo] if lo in step_3_data else ''
r = [july_1_col, lo, is_matched, los.los[lo]['weight']]
no_of_tree = '4Ts' if july_1_col == '4/4' else \
'3Ts' if july_1_col == '3/4' else \
'2Ts' if july_1_col == '2/4' else '1Ts'
r = [no_of_tree, lo, is_matched, los.los[lo]['weight']]
try:
r += weight[lo]
rows.append(r) # this will append only LO w/ weight

Loading…
Cancel
Save