From 28116fd8278bb3b8832f4f5b22c68bd7978c8efd Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Tue, 27 Sep 2016 16:14:00 +0200 Subject: Incorporate some tweaks to the monkey methods --- monkey/test.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'monkey/test.py') diff --git a/monkey/test.py b/monkey/test.py index 9267782..b88942b 100755 --- a/monkey/test.py +++ b/monkey/test.py @@ -145,8 +145,9 @@ elif sys.argv[2] == 'info': # Print all observed edits and their costs. elif sys.argv[3] == 'edits': for (path, before, after), (cost, uids) in sorted(edits.items(), key=lambda x: x[1]): - print(' {:.4f}\t{} → {}'.format(cost, stringify(before) if before else 'ε', - stringify(after) if after else 'ε')) + print(' {:.4f}\t{}: {} → {}'.format(cost, '▹'.join(path), + stringify(before) if before else 'ε', + stringify(after) if after else 'ε')) # Print all student queries and their counts. elif sys.argv[3] == 'queries': -- cgit v1.2.1