Skip to content

Commit 14e1aa6

Browse files
committed
fix(format): ran ruff
1 parent aa3c156 commit 14e1aa6

2 files changed

Lines changed: 46 additions & 49 deletions

File tree

‎src/e3sm_quickview/components/toolbars.py‎

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -332,55 +332,55 @@ def __init__(self):
332332
)
333333
# --- Spherical projection center ---
334334
with v3.VSheet(
335-
classes="d-flex align-center rounded px-1 ga-1 py-1",
336-
color=("show_spherical_center ? 'grey-lighten-3' : 'transparent'",),
337-
v_if="projection[0] === 'Spherical'",
335+
classes="d-flex align-center rounded px-1 ga-1 py-1",
336+
color=("show_spherical_center ? 'grey-lighten-3' : 'transparent'",),
337+
v_if="projection[0] === 'Spherical'",
338338
):
339-
v3.VIconBtn(
340-
v_tooltip_bottom="'Toggle Spherical center'",
341-
icon="mdi-target",
339+
v3.VIconBtn(
340+
v_tooltip_bottom="'Toggle Spherical center'",
341+
icon="mdi-target",
342+
flat=True,
343+
click="show_spherical_center = !show_spherical_center",
344+
color=("show_spherical_center ? 'primary' : ''",),
345+
size=("show_spherical_center ? 'small' : 'default'",),
346+
classes=("show_spherical_center ? 'ml-1' : 'rounded'",),
347+
)
348+
with (
349+
v3.VExpandXTransition(),
350+
html.Div(
351+
v_if=("show_spherical_center", False),
352+
classes="d-flex align-center ga-1",
353+
),
354+
):
355+
v3.VDivider(vertical=True, classes="mx-1")
356+
v3.VNumberInput(
357+
label="Longitude",
358+
v_model=("spherical_center_lon", 0),
359+
min=("-180",),
360+
max=("180",),
361+
step=("1",),
362+
hide_details=True,
363+
density="compact",
364+
variant="plain",
342365
flat=True,
343-
click="show_spherical_center = !show_spherical_center",
344-
color=("show_spherical_center ? 'primary' : ''",),
345-
size=("show_spherical_center ? 'small' : 'default'",),
346-
classes=("show_spherical_center ? 'ml-1' : 'rounded'",),
366+
control_variant="stacked",
367+
inset=True,
368+
style="min-width: 6rem;",
369+
)
370+
v3.VNumberInput(
371+
label="Latitude",
372+
v_model=("spherical_center_lat", 0),
373+
min=("-90",),
374+
max=("90",),
375+
step=("1",),
376+
hide_details=True,
377+
density="compact",
378+
style="min-width: 6rem;",
379+
variant="plain",
380+
flat=True,
381+
control_variant="stacked",
382+
inset=True,
347383
)
348-
with (
349-
v3.VExpandXTransition(),
350-
html.Div(
351-
v_if=("show_spherical_center",False),
352-
classes="d-flex align-center ga-1",
353-
),
354-
):
355-
v3.VDivider(vertical=True, classes="mx-1")
356-
v3.VNumberInput(
357-
label="Longitude",
358-
v_model=("spherical_center_lon", 0),
359-
min=("-180",),
360-
max=("180",),
361-
step=("1",),
362-
hide_details=True,
363-
density="compact",
364-
variant="plain",
365-
flat=True,
366-
control_variant="stacked",
367-
inset=True,
368-
style="min-width: 6rem;",
369-
)
370-
v3.VNumberInput(
371-
label="Latitude",
372-
v_model=("spherical_center_lat", 0),
373-
min=("-90",),
374-
max=("90",),
375-
step=("1",),
376-
hide_details=True,
377-
density="compact",
378-
style="min-width: 6rem;",
379-
variant="plain",
380-
flat=True,
381-
control_variant="stacked",
382-
inset=True,
383-
)
384384

385385
with v3.VCol():
386386
with v3.VRow(classes="mx-2 my-0"):

‎src/e3sm_quickview/components/view.py‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from trame.widgets import html
21
from trame.widgets import vuetify3 as v3
32

43

@@ -105,5 +104,3 @@ def create_size_menu(name, config):
105104
subtitle="1/6 width",
106105
click="active_layout = 'auto_layout';config.size = 2",
107106
)
108-
109-

0 commit comments

Comments
 (0)