Skip to content

Commit

Permalink
Update inline filter
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Gorochowik <[email protected]>
  • Loading branch information
tgorochowik committed Jan 10, 2025
1 parent eb98bbe commit a20dc02
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/scripts/prepare_coverage_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,15 @@ def filter(infile, outfile):
for h in hits:
for t in hits[h]:
for l in hits[h][t]:
for v in [0, 1]:
try:
mi = min(hits[h][t][l][v])
all_bits = hits[h][t][l][0] + hits[h][t][l][1]
try:
mi = min(all_bits)
for v in [0, 1]:
for i, k in enumerate(hits[h][t][l][v]):
hits[h][t][l][v][i] -= mi
except ValueError:
# allow empty lists (no hits or misses)
pass
except ValueError:
# allow empty lists (no hits or misses)
pass
new_hits = {}
Expand All @@ -110,7 +111,6 @@ def filter(infile, outfile):
if not k in new_hits[t] or new_hits[t][k] != 1:
new_hits[t][k] = v
for t in new_hits.keys():
for k in sorted(new_hits[t].keys()):
if len(new_hits[t].keys()) > 1:
Expand Down

0 comments on commit a20dc02

Please sign in to comment.