aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-11-04 00:59:20 +0100
committerMartin Czygan <martin.czygan@gmail.com>2020-11-04 00:59:20 +0100
commit61857f1cf317ce7ab992161fd5233f5277981eb9 (patch)
tree2b675223040259c375e9d1ca3cc16b3df9b1adf1
parent713b251a1cdd105e828cb188b8b7789194a99e4c (diff)
downloadfuzzycat-61857f1cf317ce7ab992161fd5233f5277981eb9.tar.gz
fuzzycat-61857f1cf317ce7ab992161fd5233f5277981eb9.zip
debug: output
-rw-r--r--fuzzycat/cluster.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/fuzzycat/cluster.py b/fuzzycat/cluster.py
index 075366b..47d4470 100644
--- a/fuzzycat/cluster.py
+++ b/fuzzycat/cluster.py
@@ -126,6 +126,8 @@ class Cluster:
print("{}\t{}".format(id, key), file=tf)
except (KeyError, ValueError):
continue
+ if self.verbose:
+ print(tf.name, file=sys.stderr)
sbc = sort_by_column(tf.name, opts='-k 2', prefix=self.prefix, tmpdir=self.tmpdir)
for doc in group_by(sbc, key=cut(f=1), value=cut(f=0), comment=keyfunc.__name__):
json.dump(doc, self.output)