Skip to content

Commit

Permalink
Centralize shared imports in Input/__init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
proy30 committed Jan 8, 2025
1 parent 51a75f0 commit a01b272
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 25 deletions.
14 changes: 14 additions & 0 deletions src/python/impactx/dashboard/Input/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from trame.widgets import vuetify as vuetify

from ..trame_setup import setup_server
from .defaults import DashboardDefaults
from .generalFunctions import generalFunctions
from .trameFunctions import TrameFunctions

__all__ = [
"vuetify",
"DashboardDefaults",
"TrameFunctions",
"generalFunctions",
"setup_server",
]
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
from trame.widgets import vuetify

from ...Input.trameFunctions import TrameFunctions
from ...trame_setup import setup_server
from ..generalFunctions import generalFunctions
from .. import TrameFunctions, generalFunctions, setup_server, vuetify

server, state, ctrl = setup_server()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@
import inspect

from distribution_input_helpers import twiss
from trame.widgets import vuetify

from impactx import distribution

from ...Input.trameFunctions import TrameFunctions
from ...trame_setup import setup_server
from ..generalFunctions import generalFunctions
from .. import TrameFunctions, generalFunctions, setup_server, vuetify
from .distributionFunctions import DistributionFunctions

server, state, ctrl = setup_server()
Expand Down
13 changes: 7 additions & 6 deletions src/python/impactx/dashboard/Input/inputParameters/inputMain.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
License: BSD-3-Clause-LBNL
"""

from trame.widgets import vuetify

from ...Input.trameFunctions import TrameFunctions
from ...trame_setup import setup_server
from ..defaults import DashboardDefaults
from ..generalFunctions import generalFunctions
from .. import (
DashboardDefaults,
TrameFunctions,
generalFunctions,
setup_server,
vuetify,
)
from .inputFunctions import InputFunctions

server, state, ctrl = setup_server()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,9 @@
License: BSD-3-Clause-LBNL
"""

from trame.widgets import vuetify

from impactx import elements

from ...Input.trameFunctions import TrameFunctions
from ...trame_setup import setup_server
from ..generalFunctions import generalFunctions
from .. import TrameFunctions, generalFunctions, setup_server, vuetify

server, state, ctrl = setup_server()

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
from trame.widgets import vuetify

from ...Input.trameFunctions import TrameFunctions
from ...trame_setup import setup_server
from ..generalFunctions import generalFunctions
from .. import TrameFunctions, generalFunctions, setup_server, vuetify
from .spaceChargeFunctions import SpaceChargeFunctions

server, state, ctrl = setup_server()
Expand Down

0 comments on commit a01b272

Please sign in to comment.