From dd8b74cec7400d7b69c263280292507e8f9f0080 Mon Sep 17 00:00:00 2001 From: Adam Theisen Date: Sat, 1 Jul 2023 17:08:50 -0500 Subject: [PATCH] =?UTF-8?q?BUG:=20Bug=20fix.=20=20The=20flag=5Fmasks=20are?= =?UTF-8?q?=20bits=20and=20the=20test=20is=20the=20test=20numbe=E2=80=A6?= =?UTF-8?q?=20(#695)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * BUG: Bug fix. The flag_masks are bits and the test is the test number so we need to do the conversion * STY: PEP8 Fix. --------- Co-authored-by: zssherman --- act/qc/qcfilter.py | 1 + 1 file changed, 1 insertion(+) diff --git a/act/qc/qcfilter.py b/act/qc/qcfilter.py index ea0bff4e57..4e1d2e7110 100644 --- a/act/qc/qcfilter.py +++ b/act/qc/qcfilter.py @@ -1069,6 +1069,7 @@ def datafilter( rm_tests = [rm_tests] if rm_tests is not None: for test in list(rm_tests): + test = 2 ** (test - 1) if test in flag_masks: index = flag_masks.index(test) comment = ''.join(['act.qc.datafilter: ', flag_meanings[index]])