From ce1dcba6720a59f6b3f356c96e9eb79707036f49 Mon Sep 17 00:00:00 2001 From: "fei.zheng" Date: Wed, 3 May 2023 10:04:15 -0600 Subject: [PATCH] fix decimal doesn't work for single run Signed-off-by: fei.zheng --- src/omniperf_analyze/utils/tty.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/omniperf_analyze/utils/tty.py b/src/omniperf_analyze/utils/tty.py index 0900fd689f..c7a0636671 100644 --- a/src/omniperf_analyze/utils/tty.py +++ b/src/omniperf_analyze/utils/tty.py @@ -143,6 +143,11 @@ def show_all(runs, archConfigs, output, decimal, time_unit, selected_cols, verbo df = pd.concat([df, t_df], axis=1) else: + cur_df[header] = [ + round(float(x), decimal) if x != "" else x + for x in base_df[header] + ] + df = pd.concat([df, cur_df[header]], axis=1) if not df.empty: