From 58e54c8e23dce0f5f2f19ac91e5b65ca6d80449d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Simonis?= Date: Thu, 23 Jan 2025 11:48:45 +0100 Subject: [PATCH] Limit columns to check to non-run sensitive ones --- tools/mapping-tester/compare.py | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/tools/mapping-tester/compare.py b/tools/mapping-tester/compare.py index 99a476c5..936c931e 100755 --- a/tools/mapping-tester/compare.py +++ b/tools/mapping-tester/compare.py @@ -40,10 +40,23 @@ df_a = df_a.sort(order) df_reference = df_reference.sort(order) +check_cols = set( + [ + "count", + "abs_min", + "abs_max", + "signed_min", + "signed_max", + "median(abs)", + "relative-l2", + "99th percentile(abs)", + "95th percentile(abs)", + "90th percentile(abs)", + ] +) + mismatches = [] -for c in ac: - if c in order: - continue +for c in ac.intersection(check_cols): ref, a = df_reference.get_column(c), df_a.get_column(c)