Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 10, 2025
1 parent 1e277c8 commit ee421a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/python/impactx/dashboard/Input/components.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Optional

from .. import setup_server, html, vuetify
from .. import html, setup_server, vuetify
from .generalFunctions import generalFunctions

server, state, ctrl = setup_server()
Expand Down Expand Up @@ -45,7 +45,7 @@ def open_documentation():
Retrieves the documentation link with the provided section_name
and opens the documentation sidebar on the dashoard.
"""

DOCUMENTATION = {
"input_parameters": "https://impactx.readthedocs.io/en/latest/usage/python.html#impactx.ImpactX",
"lattice_configuration": "https://impactx.readthedocs.io/en/latest/usage/python.html#lattice-elements",
Expand All @@ -54,7 +54,6 @@ def open_documentation():
"csr": "https://impactx.readthedocs.io/en/latest/usage/parameters.html#coherent-synchrotron-radiation-csr",
}


new_url = DOCUMENTATION.get(section_name)
if state.documentation_drawer_open and state.documentation_url == new_url:
state.documentation_drawer_open = False
Expand Down
2 changes: 1 addition & 1 deletion src/python/impactx/dashboard/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from trame.widgets import vuetify as vuetify
from trame.widgets import html
from trame.widgets import vuetify as vuetify

# isort: off

Expand Down

0 comments on commit ee421a6

Please sign in to comment.