Skip to content

Commit

Permalink
ci: Fix lint issue with newer flake8 version (6.1.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
GiannaP committed Aug 3, 2023
1 parent 824bb44 commit 6fe3d35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/trace/layout_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def main():
expr = row[0]
code = compile(expr, "<string>", "eval")
tids = eval(code)
if type(tids) == int:
if isinstance(tids, int):
tids = [tids]

# Iterate hart IDs
Expand All @@ -108,7 +108,7 @@ def main():
row_idx = tid
col_idx = 1 + reg_idx * 2
assert row_idx < df.shape[0], f'Hart ID {row_idx} out of bounds'
assert (col_idx + 1) < df.shape[1],\
assert (col_idx + 1) < df.shape[1], \
f'Region index {reg_idx} out of bounds'
orow.append(int(df.iat[row_idx, col_idx]))
orow.append(int(df.iat[row_idx, col_idx + 1]))
Expand Down

0 comments on commit 6fe3d35

Please sign in to comment.