From 644b20e3085f206089e08ab6bbd94cf0ecd4acf5 Mon Sep 17 00:00:00 2001 From: coleramos425 Date: Thu, 23 Mar 2023 12:54:00 -0500 Subject: [PATCH] Conform to Python formatting Signed-off-by: coleramos425 --- src/omniperf_analyze/utils/gui.py | 7 ++++++- src/omniperf_analyze/utils/gui_components/header.py | 7 +++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/omniperf_analyze/utils/gui.py b/src/omniperf_analyze/utils/gui.py index a5b9335209..25e908ce45 100644 --- a/src/omniperf_analyze/utils/gui.py +++ b/src/omniperf_analyze/utils/gui.py @@ -353,7 +353,12 @@ def build_table_chart( } if IS_DARK else {}, - style_data={"backgroundColor": "rgb(50, 50, 50)", "color": "white", "whiteSpace": "normal", "height": "auto"} + style_data={ + "backgroundColor": "rgb(50, 50, 50)", + "color": "white", + "whiteSpace": "normal", + "height": "auto", + } if IS_DARK else {}, style_data_conditional=[ diff --git a/src/omniperf_analyze/utils/gui_components/header.py b/src/omniperf_analyze/utils/gui_components/header.py index 5210a02c0c..6723a26c43 100644 --- a/src/omniperf_analyze/utils/gui_components/header.py +++ b/src/omniperf_analyze/utils/gui_components/header.py @@ -38,15 +38,14 @@ def list_unique(orig_list, is_numeric): unique_list.sort() return unique_list + def create_span(input): elmt = {} - elmt["label"] = html.Span( - str(input), - title=str(input) - ), + elmt["label"] = (html.Span(str(input), title=str(input)),) elmt["value"] = str(input) return elmt + def get_header(raw_pmc, input_filters, kernel_names): return html.Header( id="home",