Comply to Python formatting

Signed-off-by: coleramos425 <colramos@amd.com>
This commit is contained in:
coleramos425
2023-05-02 15:13:19 -05:00
parent f114440c6f
commit 2babc6baaa
2 changed files with 8 additions and 5 deletions
+6 -4
View File
@@ -54,9 +54,7 @@ HIDDEN_COLUMNS = ["Tips", "coll_level"]
IS_DARK = True # default dark theme
# Define any elements which will have full width
full_width_elmt = {
1801
}
full_width_elmt = {1801}
# Define different types of bar charts
barchart_elements = {
@@ -589,7 +587,11 @@ def build_layout(
if table_config["id"] in full_width_elmt:
# Optionally override default (50%) width
html_section.append(
html.Div(className="float-child", children=content, style={"width": "100%"})
html.Div(
className="float-child",
children=content,
style={"width": "100%"},
)
)
else:
html_section.append(
+2 -1
View File
@@ -135,7 +135,8 @@ def to_median(a):
return a.median()
else:
raise Exception("to_median: unsupported type.")
def to_std(a):
if isinstance(a, pd.core.series.Series):
return a.std()