Python formatting
Signed-off-by: colramos-amd <colramos@amd.com>
[ROCm/rocprofiler-compute commit: d6f45411eb]
这个提交包含在:
@@ -51,10 +51,12 @@ def string_multiple_lines(source, width, max_rows):
|
||||
|
||||
|
||||
def get_table_string(df, transpose=False, decimal=2):
|
||||
return tabulate(df.transpose() if transpose else df,
|
||||
headers="keys",
|
||||
tablefmt="fancy_grid",
|
||||
floatfmt="." + str(decimal) + "f")
|
||||
return tabulate(
|
||||
df.transpose() if transpose else df,
|
||||
headers="keys",
|
||||
tablefmt="fancy_grid",
|
||||
floatfmt="." + str(decimal) + "f",
|
||||
)
|
||||
|
||||
|
||||
def show_all(args, runs, archConfigs, output):
|
||||
@@ -221,9 +223,11 @@ def show_all(args, runs, archConfigs, output):
|
||||
# df when load it, because we need those items in column.
|
||||
# For metric_table, we only need to show the data in column
|
||||
# fash for now.
|
||||
transpose = (type != "raw_csv_table"
|
||||
transpose = (
|
||||
type != "raw_csv_table"
|
||||
and "columnwise" in table_config
|
||||
and table_config["columnwise"] == True)
|
||||
and table_config["columnwise"] == True
|
||||
)
|
||||
ss += (
|
||||
get_table_string(df, transpose=transpose, decimal=args.decimal)
|
||||
+ "\n"
|
||||
|
||||
在新工单中引用
屏蔽一个用户