From d72ef5220872671ad20944d2c2c838115dff188c Mon Sep 17 00:00:00 2001 From: Nick Curtis <6463881+skyreflectedinmirrors@users.noreply.github.com> Date: Fri, 22 Mar 2024 11:29:36 -0400 Subject: [PATCH] Fix for #300 (#331) On some versions of numpy/pandas, applying a str map to an empty series doesn't change the type. As a result, when adding a float to a string, sometimes numpy dies with a uadd error. We fix this by explicitly casting to a str first Signed-off-by: Nicholas Curtis Co-authored-by: Nicholas Curtis --- src/utils/tty.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/tty.py b/src/utils/tty.py index 891f190c9d..40ad85e875 100644 --- a/src/utils/tty.py +++ b/src/utils/tty.py @@ -149,6 +149,7 @@ def show_all(args, runs, archConfigs, output): .astype(float) .round(args.decimal) .map(str) + .astype(str) + " (" + t_df_pretty.map(str) + "%)"