wip added publish of params
CI for csaxs_bec / test (push) Successful in 1m24s

This commit is contained in:
x01dc
2025-11-12 15:08:50 +01:00
parent 5b041125c7
commit 23dc98cb38
@@ -260,6 +260,7 @@ class XRayEye(BECWidget, QWidget):
self.fit_tab = QWidget(parent=self)
self.fit_layout = QVBoxLayout(self.fit_tab)
self.waveform = Waveform(parent=self.fit_tab)
self.waveform.dap_params_update.connect(self.on_dap_params)
self.fit_layout.addWidget(self.waveform)
self.tab_widget.addTab(self.fit_tab, "Fit")
@@ -413,6 +414,19 @@ class XRayEye(BECWidget, QWidget):
self.submit_button.setEnabled(False)
else:
self.submit_button.setEnabled(True)
@SafeSlot(dict,dict)
def on_dap_params(self,data,meta):
print('on dap params')
print(f"data: {data}")
print(f"meta: {meta}")
self.blockSignals(True)
amplitude = data.get("amplitude")
frequency = data.get("frequency")
shift = data.get("shift")
dev.omny_xray_gui.fit_params.put(data)
self.waveform.blockSignals(False)
@SafeSlot(bool, bool)
def on_tomo_angle_readback(self, data: dict, meta: dict):
@@ -441,6 +455,8 @@ class XRayEye(BECWidget, QWidget):
#TODO hook the waveform plotting logic
fov_array = signals.get("omny_xray_gui_fov_array").get('value')
print(f"fov_array: {fov_array}")
self.waveform.clear_all()
self.waveform.plot(x=fov_array[0],y=fov_array[1], label="fov_array",dap="SineModel",dap_oversample=5)
# Signals from epics gui device
# send message