Browse Source

[s8] bug fix - missing table header

master
sipp11 11 years ago
parent
commit
1be4ec2938
  1. 8
      s8.py

8
s8.py

@ -72,12 +72,20 @@ def middleman(ls, rs):
def main(): def main():
header = [
'lo_id', '',
] + ['' for i in xrange(0, 19)]
for m in MODEL_LIST: for m in MODEL_LIST:
l_list, lo_data = get_test_data(m) l_list, lo_data = get_test_data(m)
m_header = header[:]
m_header[1] = m
for i in '1234': for i in '1234':
ros = get_ro_data(m, i) ros = get_ro_data(m, i)
for r in ros:
m_header.append(r[0])
result = middleman(lo_data, ros) result = middleman(lo_data, ros)
output_name = '%s-%s.csv' % (m, i) output_name = '%s-%s.csv' % (m, i)
result = [m_header] + result
create_csv(output_name, result, directory='part8') create_csv(output_name, result, directory='part8')
main() main()

Loading…
Cancel
Save