Skip to content

Commit 45b252b

Browse files
committed
Merge branch 'main' into cleanup_state_reactor
2 parents 9b8c0be + f6be4f1 commit 45b252b

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
33
# Ruff version
4-
rev: v0.14.13
4+
rev: v0.14.14
55
hooks:
66
# Run the linter
77
- id: ruff-check

dashboard/utils.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -360,21 +360,21 @@ def hover_section(title, cols, hover_data):
360360
)
361361
# ----------------------------------------------------------------------
362362
# figures style
363-
if parameters_show_all[key]:
364-
fig.update_xaxes(
365-
exponentformat="e",
366-
title_text=key,
367-
row=this_row,
368-
col=this_col,
369-
)
370-
else:
371-
fig.update_xaxes(
372-
range=(parameters_min[key], parameters_max[key]),
373-
exponentformat="e",
374-
title_text=key,
375-
row=this_row,
376-
col=this_col,
377-
)
363+
custom_range = (
364+
[None, None]
365+
if parameters_show_all[key]
366+
else [
367+
parameters_min[key],
368+
parameters_max[key],
369+
]
370+
)
371+
fig.update_xaxes(
372+
range=custom_range,
373+
exponentformat="e",
374+
title_text=key,
375+
row=this_row,
376+
col=this_col,
377+
)
378378

379379
# A bit of padding on either end of the y range so we can see all the data.
380380
padding = 0.05 * (global_ymax - global_ymin)

0 commit comments

Comments
 (0)