-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Condense repetitive dashboard code (#780)
* Centralize vselect and vtextfields * Centralize documentation code * Centralize section header code * Fix multigrid settings * Centralize dialog settings code for lattice config and space charge * Add staticmethods * Centralize some more space charge functions * Reduce code for calling toolbars * Remove redundant error_message state inits * Create initialize_states() and remove redundant state initialization Future commit needs to create init_states by section rather than at once call * Remove state inits for dialogs Dialogs defaults will always be false, not necessary to expicitly state it * Correctly condense refresh input functionality into input_section_header() * Provide default v_model_name if not given * rename selected_distribution and selected_distribution_type to distribution and distribution_type This was already changed from selectedDistribution and selectedDistributionType to selected_distribution and distribution_type and this is the second variable name change * Simplify inputMain.py * Centralize shared imports in Input/__init__.py * Simplify csrConfiguration * Update more of distributionMain.py variable name change relocte logic * Simplify duplicated lattice config code * Remove print statement
- Loading branch information
Showing
13 changed files
with
385 additions
and
649 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.