From 3ec3867085f4e7bcda8870b76d10b55d7f705ecd Mon Sep 17 00:00:00 2001 From: Roman Chyla Date: Tue, 29 Nov 2016 17:55:42 -0500 Subject: [PATCH] Updted to see only big differences --- compare.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/compare.py b/compare.py index 4d785cc..58c1b0c 100644 --- a/compare.py +++ b/compare.py @@ -71,7 +71,11 @@ def compare(solr1, solr2, input_file): queries[k] = r if r[0] != r[1]: - print 'diff', r[0], r[1], k + if r[0] is not None and r[1] is not None: + if r[0] - r[1] > 10 or r[0] - r[1] < -10: + print 'diff', r[0], r[1], k + else: + print 'diff', r[0], r[1], k different += 1 else: the_same += 1