Skip to content
Open
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
30 changes: 15 additions & 15 deletions dashboard/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def update(
reset_calibration=True,
reset_plots=True,
reset_gui_route_home=True,
reset_gui_route_nersc=True,
reset_gui_route_hpc=True,
reset_gui_route_chat=True,
reset_gui_layout=True,
preloaded_model_manager=None,
Expand Down Expand Up @@ -108,9 +108,9 @@ def update(
# reset GUI home route
if reset_gui_route_home:
home_route()
# reset GUI NERSC route
if reset_gui_route_nersc:
nersc_route()
# reset GUI HPC route
if reset_gui_route_hpc:
hpc_route()
# reset GUI chat route
if reset_gui_route_chat:
chat_route()
Expand Down Expand Up @@ -222,7 +222,7 @@ def reset(**kwargs):
reset_calibration=True,
reset_plots=True,
reset_gui_route_home=True,
reset_gui_route_nersc=False,
reset_gui_route_hpc=False,
reset_gui_route_chat=False,
reset_gui_layout=False,
)
Expand All @@ -240,7 +240,7 @@ def reset(**kwargs):
reset_calibration=False,
reset_plots=True,
reset_gui_route_home=True,
reset_gui_route_nersc=False,
reset_gui_route_hpc=False,
reset_gui_route_chat=False,
reset_gui_layout=False,
)
Expand All @@ -264,7 +264,7 @@ def reset(**kwargs):
reset_calibration=False,
reset_plots=True,
reset_gui_route_home=False,
reset_gui_route_nersc=False,
reset_gui_route_hpc=False,
reset_gui_route_chat=False,
reset_gui_layout=False,
)
Expand Down Expand Up @@ -433,13 +433,13 @@ def home_route():
ctrl.figure_update = figure.update


# NERSC route
def nersc_route():
print("Setting GUI NERSC route...")
with RouterViewLayout(server, "/nersc"):
# HPC route
def hpc_route():
print("Setting GUI HPC route...")
with RouterViewLayout(server, "/hpc"):
with vuetify.VRow():
with vuetify.VCol(cols=4):
# Superfacility API card
# NERSC Superfacility API card
with vuetify.VRow():
with vuetify.VCol():
load_sfapi_card()
Expand Down Expand Up @@ -506,11 +506,11 @@ def gui_setup():
prepend_icon="mdi-chat",
title="AI Assistant",
)
# NERSC route
# HPC route
vuetify.VListItem(
to="/nersc",
to="/hpc",
prepend_icon="mdi-lan-connect",
title="NERSC API key",
title="HPC Connection",
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please suggest alternative titles if you prefer.

)
# interactive dialog for simulation plots
with vuetify.VDialog(
Expand Down
2 changes: 1 addition & 1 deletion dashboard/sfapi_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def load_sfapi_credentials(**kwargs):
def load_sfapi_card():
print("Setting Superfacility API card...")
with vuetify.VCard():
with vuetify.VCardTitle("Superfacility API"):
with vuetify.VCardTitle("NERSC Superfacility API"):
with vuetify.VCardText():
# row with component to upload input file
with vuetify.VRow():
Expand Down
Loading