|
|
@ -61,6 +61,7 @@ def main(*argv): |
|
|
|
with open(os.path.join(os.getcwd(), 'build', sum_file), 'wb') as o: |
|
|
|
with open(os.path.join(os.getcwd(), 'build', sum_file), 'wb') as o: |
|
|
|
result_writer = csv.writer(o, delimiter=',', quotechar='"', |
|
|
|
result_writer = csv.writer(o, delimiter=',', quotechar='"', |
|
|
|
quoting=csv.QUOTE_ALL) |
|
|
|
quoting=csv.QUOTE_ALL) |
|
|
|
|
|
|
|
m = {} |
|
|
|
for i in xrange(0, 3): |
|
|
|
for i in xrange(0, 3): |
|
|
|
result_writer.writerow(['count', order[i]]) |
|
|
|
result_writer.writerow(['count', order[i]]) |
|
|
|
# print('count , ', order[i], ' / ', type(order[i])) |
|
|
|
# print('count , ', order[i], ' / ', type(order[i])) |
|
|
@ -73,9 +74,16 @@ def main(*argv): |
|
|
|
for _i in xrange(3, len(mc[j])): |
|
|
|
for _i in xrange(3, len(mc[j])): |
|
|
|
lo_result = lo_result.union(mc[j][order[_i]]) |
|
|
|
lo_result = lo_result.union(mc[j][order[_i]]) |
|
|
|
# print(' ==EX== ', len(lo_result)) |
|
|
|
# print(' ==EX== ', len(lo_result)) |
|
|
|
|
|
|
|
if j not in m: |
|
|
|
|
|
|
|
m[j] = lo_result |
|
|
|
|
|
|
|
else: |
|
|
|
|
|
|
|
m[j] = m[j].union(lo_result) |
|
|
|
result_writer.writerow([j, ','.join(list(lo_result))]) |
|
|
|
result_writer.writerow([j, ','.join(list(lo_result))]) |
|
|
|
except KeyError: |
|
|
|
except KeyError: |
|
|
|
print(' no key ', j, '[', order[i], ']') |
|
|
|
print(' no key ', j, '[', order[i], ']') |
|
|
|
|
|
|
|
result_writer.writerow(['All Result', '']) |
|
|
|
|
|
|
|
for _m in m.keys(): |
|
|
|
|
|
|
|
result_writer.writerow([_m, ','.join(list(m[_m]))]) |
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__': |
|
|
|
if __name__ == '__main__': |
|
|
|
if len(sys.argv) > 1: |
|
|
|
if len(sys.argv) > 1: |
|
|
|