diff 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
line wrap: on
line diff
--- a/master/src/wecu/sac_reducer.py	Thu May 28 09:58:38 2020 +0000
+++ b/master/src/wecu/sac_reducer.py	Thu May 28 12:55:03 2020 +0000
@@ -3,7 +3,7 @@
 import sys
 from collections import defaultdict
 
-if sys.argv[0] == 'by-file':
+if sys.argv[1] == 'by-file':
     # Show results by file
     for line in sys.stdin:
         print(line.strip())