fix(digital_twin): Fix various bugs
CI for debye_bec / test (pull_request) Failing after 45s
CI for debye_bec / test (push) Failing after 45s

This commit is contained in:
x01da committed 2026-10-26 13:00:30 +01:00
1 parent 37a17ed292
commit 8c28ff248d
4 files changed
+6 -5

No files matched your search

@@ -1,3 +0,0 @@
from .digital_twin_core import get_parameters
parameters = get_parameters()
@@ -11,7 +11,6 @@ from scipy.interpolate import UnivariateSpline
from xrt.backends.raycing.physconsts import AVOGADRO, CHeVcm
from ..beamline import get_beamline_id
from . import parameters as bl
from .motion_worker import MotionOutcome, MotionWorker
from .types import BeamlineId, ConfigDict, DataDict, SurfaceDict
@@ -37,6 +36,9 @@ def get_parameters():
return parameters
bl = get_parameters()
class _ExclusiveGroupManager:
def __init__(self):
self._cond = threading.Condition()
@@ -169,6 +169,7 @@ class MoveWidget(QWidget):
# Checkbox
self.checkbox = QCheckBox()
self.checkbox.setFixedWidth(30)
self.checkbox.setChecked(True)
layout.addWidget(self.checkbox)
@@ -167,6 +167,7 @@ class ComboBox(QWidget):
func,
identifier=self.identifier,
value_obj=self.value,
index=lambda: self.value.currentIndex(),
value=lambda: self.value.currentText(),
)
)
@@ -191,9 +192,9 @@ class Button(QWidget):
self.label.setFixedWidth(LABEL_WIDTH)
layout.addWidget(self.label)
self.button = QPushButton(label_button)
self.setEnabled(enabled)
layout.addWidget(self.button)
self.color = color
self.setEnabled(enabled)
def clicked_connect(self, func):
"""Connect a function to the button press."""