Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions src/e3sm_compareview/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ def _tauri_show(self, **_):
# -------------------------------------------------------------------------

def _build_ui(self, **_):
if self.server.hot_reload:
toolbars.reload(toolbars)

with VAppLayout(self.server, fill_height=True) as self.ui:
# Keyboard shortcut
with tw.MouseTrap(
Expand Down Expand Up @@ -672,8 +675,11 @@ async def _import_state(self, state_content):
array_name = view_state.get("array_name", var_name)

view_spec = next(
(c for c in self.view_manager.get_view_specs(var_name)
if c["array_name"] == array_name),
(
c
for c in self.view_manager.get_view_specs(var_name)
if c["array_name"] == array_name
),
None,
)
view = self.view_manager.get_view(view_spec or array_name, view_type)
Expand All @@ -694,9 +700,7 @@ async def _import_state(self, state_content):
self.state.aspect_ratio = layout["aspect-ratio"]
self.state.active_layout = layout["active"]
self.state.active_tools = [
tool
for tool in layout["tools"]
if tool != "comparison-controls"
tool for tool in layout["tools"] if tool != "comparison-controls"
]
self.state.compact_drawer = not layout["help"]

Expand Down
30 changes: 18 additions & 12 deletions src/e3sm_compareview/components/doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ def __init__(self):
QuickCompare contrasts two or more simulations by displaying
the physical quantities as well as their differences between simulations.
A detailed {Bold("User's Guide")} can be found through
{Link("this link","https://kitware.github.io/QuickView/guides/quickcompare/")}.
{Link("this link", "https://kitware.github.io/QuickView/guides/quickcompare/")}.
{Bold("Bug reports and feature requests")} can be submitted through
{Link("GitHub","https://github.com/Kitware/E3SMQuickCompare/issues")}.
{Link("GitHub", "https://github.com/Kitware/E3SMQuickCompare/issues")}.
"""
)

# v3.VImg(classes="rounded-lg", src=ASSETS.banner)
# v3.VImg(classes="rounded-lg", src=ASSETS.banner)

Title("Toolbar Icons")

Expand Down Expand Up @@ -187,16 +187,22 @@ def __init__(self):
{Link("Pacific Northwest National Laboratory", "https://www.pnnl.gov/")}
using funding from the U.S. Department of Energy's SciDAC program
through a partnership between
the {Link("Advanced Scientific Computing Reaserch (ASCR)",
"https://www.energy.gov/science/ascr/advanced-scientific-computing-research")} program and
the {Link("Biological and Environmental Research (BER)",
"https://www.energy.gov/science/ber/biological-and-environmental-research")} program.
"""
)
the {
Link(
"Advanced Scientific Computing Reaserch (ASCR)",
"https://www.energy.gov/science/ascr/advanced-scientific-computing-research",
)
} program and
the {
Link(
"Biological and Environmental Research (BER)",
"https://www.energy.gov/science/ber/biological-and-environmental-research",
)
} program.
""")

Paragraph(f"""
The development of QuickView used resources of the
{Link("National Energy Research Scientific Computing Center (NERSC)","https://www.nersc.gov/")},
{Link("National Energy Research Scientific Computing Center (NERSC)", "https://www.nersc.gov/")},
a U.S. Department of Energy User Facility.
"""
)
""")
Loading
Loading