Skip to content

Commit

Permalink
fix(formatting): Fix python script formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasssvaz committed Dec 4, 2024
1 parent fbc1ae5 commit db6617f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/performance/psramspeed/test_psramspeed.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def test_psramspeed(dut, request):
sums[(test, size, impl)]["time_sum"] += time

avg_results = {}
for (test, size, impl) in sums:
for test, size, impl in sums:
rate_avg = round(sums[(test, size, impl)]["rate_sum"] / runs, 2)
time_avg = round(sums[(test, size, impl)]["time_sum"] / runs, 2)
LOGGER.info(
Expand Down
2 changes: 1 addition & 1 deletion tests/performance/ramspeed/test_ramspeed.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def test_ramspeed(dut, request):
sums[(test, size, impl)]["time_sum"] += time

avg_results = {}
for (test, size, impl) in sums:
for test, size, impl in sums:
rate_avg = round(sums[(test, size, impl)]["rate_sum"] / runs, 2)
time_avg = round(sums[(test, size, impl)]["time_sum"] / runs, 2)
LOGGER.info(
Expand Down
2 changes: 1 addition & 1 deletion tools/gen_esp32part.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ def to_binary(self):
def to_csv(self, simple_formatting=False):
def addr_format(a, include_sizes):
if not simple_formatting and include_sizes:
for (val, suffix) in [(0x100000, "M"), (0x400, "K")]:
for val, suffix in [(0x100000, "M"), (0x400, "K")]:
if a % val == 0:
return "%d%s" % (a // val, suffix)
return "0x%x" % a
Expand Down

0 comments on commit db6617f

Please sign in to comment.