Skip to content

Commit

Permalink
BUG: Bug fix. The flag_masks are bits and the test is the test numbe… (
Browse files Browse the repository at this point in the history
…#695)

* 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 <[email protected]>
  • Loading branch information
AdamTheisen and zssherman authored Jul 1, 2023
1 parent 9d3c4a6 commit dd8b74c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions act/qc/qcfilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]])
Expand Down

0 comments on commit dd8b74c

Please sign in to comment.