summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/analyze-archive.py4
-rw-r--r--lib/loader.py2
-rw-r--r--lib/runner.py2
3 files changed, 4 insertions, 4 deletions
diff --git a/bin/analyze-archive.py b/bin/analyze-archive.py
index 8311f5c..aa266ed 100755
--- a/bin/analyze-archive.py
+++ b/bin/analyze-archive.py
@@ -150,8 +150,8 @@ def model_quality_table(result_lists, info_list):
"key",
"attribute",
"static".center(19),
- "LUT".center(19),
"parameterized".center(19),
+ "LUT".center(19),
)
)
for state_or_tran in result_lists[0]["by_name"].keys():
@@ -434,7 +434,7 @@ if __name__ == "__main__":
)
sys.exit(2)
- if len(traces) > 20:
+ if len(traces) > 40:
print(f"""Truncating plot to 40 of {len(traces)} traces (random sample)""")
traces = random.sample(traces, 40)
diff --git a/lib/loader.py b/lib/loader.py
index 4e07c92..57b3d30 100644
--- a/lib/loader.py
+++ b/lib/loader.py
@@ -481,7 +481,7 @@ class RawData:
if sorted(online_trace_part["parameter"].keys()) != self._parameter_names:
processed_data[
"error"
- ] = "Offline #{off_idx:d} (online {on_name:s} @ {on_idx:d}/{on_sub:d}) has inconsistent parameter set: should be {param_want:s}, is {param_is:s}".format(
+ ] = "Offline #{off_idx:d} (online {on_name:s} @ {on_idx:d}/{on_sub:d}) has inconsistent parameter set: should be {param_want}, is {param_is}".format(
off_idx=offline_idx,
on_idx=online_run_idx,
on_sub=online_trace_part_idx,
diff --git a/lib/runner.py b/lib/runner.py
index 77b7c68..96569a8 100644
--- a/lib/runner.py
+++ b/lib/runner.py
@@ -419,7 +419,7 @@ def sleep_ms(duration: int, arch: str, cpu_freq: int = None) -> str:
if tail_sleep > 0:
ret += f"arch.sleep_ms({tail_sleep});\n"
return ret
- return "arch.sleep_ms({duration});\n"
+ return f"arch.sleep_ms({duration});\n"
def get_counter_limits_us(arch: str) -> tuple: