Mercurial > hg > cc > azure
comparison master/src/wecu/sac_reducer.py @ 60:5fdca5baa4e9
refactor a bit, add support for sac with bespoke mapper
author | Henry S. Thompson <ht@markup.co.uk> |
---|---|
date | Thu, 28 May 2020 12:55:03 +0000 |
parents | a3edba8dab11 |
children | cfaf5223b071 |
comparison
equal
deleted
inserted
replaced
59:8332faef25e1 | 60:5fdca5baa4e9 |
---|---|
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 | 2 |
3 import sys | 3 import sys |
4 from collections import defaultdict | 4 from collections import defaultdict |
5 | 5 |
6 if sys.argv[0] == 'by-file': | 6 if sys.argv[1] == 'by-file': |
7 # Show results by file | 7 # Show results by file |
8 for line in sys.stdin: | 8 for line in sys.stdin: |
9 print(line.strip()) | 9 print(line.strip()) |
10 else: | 10 else: |
11 # Aggregate results | 11 # Aggregate results |