Skip to content

Commit e3e1f41

Browse files
committed
fix codeQL
1 parent 603d919 commit e3e1f41

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
from .defaults import DashboardDefaults
2-
from .utils import GeneralFunctions
32
from .validation import DashboardValidation
43

54
__all__ = [
65
"DashboardDefaults",
76
"DashboardValidation",
8-
"generalFunctions",
97
]

src/python/impactx/dashboard/Input/distribution/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from impactx.distribution_input_helpers import twiss
1313

1414
from ... import state
15-
from .. import GeneralFunctions
15+
from ..utils import GeneralFunctions
1616

1717

1818
class DistributionFunctions:

src/python/impactx/dashboard/Input/space_charge/ui.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
InputComponents,
1414
NavigationComponents,
1515
)
16-
from .. import DashboardValidation, GeneralFunctions
16+
from .. import DashboardValidation
17+
from ..utils import GeneralFunctions
1718
from ..validation import sim_validator
1819
from .utils import SpaceChargeFunctions
1920

src/python/impactx/dashboard/Input/validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ def _get_error_message(self, input_name: str) -> str:
159159
:param input_name: The name of the input field that is modified.
160160
"""
161161
normalized = self._normalize_input_name(input_name)
162-
print(f" normalized: {normalized}")
163162
return getattr(state, f"{normalized}_error_message", "")
164163

165164
def _get_validation_method(self, section_name: str):
@@ -259,6 +258,7 @@ def update(self, section_name: str) -> None:
259258
260259
Helpful for determining if a simulation can be ran on the dashboard and if/what are the input errors.
261260
"""
261+
section_errors = []
262262
checker_method, expected_method_name = self._get_validation_method(section_name)
263263

264264
if callable(checker_method):

0 commit comments

Comments
 (0)