DAQ-WORKER: connected simplescanparameters with GUI panel and DAQ
This commit is contained in:
1 parent
11bc0e5363
commit
c7378f7e02
1 file changed
+8
-1
@@ -7,7 +7,7 @@ from jfjoch_client import ScanResult, ScanResultImagesInner
|
||||
|
||||
from aaredaqlib.coordinate import SmargonCoordinate, Coordinate
|
||||
from aaredaqlib.models import DAQStatusModel, SampleShortInfoList, SampleShortInfo, SampleCameraSettings, \
|
||||
AutofocusSettings
|
||||
AutofocusSettings, SimpleScanParameters
|
||||
from aaredaqlib.raster_grid import RasterGridRequest, CompletedRasterGrid
|
||||
from aaredaqlib.rotation_scan import RotationScanRequest, CompletedRotationScan
|
||||
|
||||
@@ -329,6 +329,13 @@ class DAQWorker(QObject):
|
||||
reply = self.__net_manager.post(request, QByteArray(body.encode("utf-8")))
|
||||
reply.finished.connect(lambda: self.handle_auto_scan_response(reply, s.db_id))
|
||||
|
||||
@Slot(SimpleScanParameters)
|
||||
def smart_params(self, p: SimpleScanParameters):
|
||||
if self.__base_url is None:
|
||||
print(f"POST /scan/smart_params: {p.model_dump_json()}")
|
||||
return
|
||||
self.generic_post("scan/smart_params", p.model_dump_json())
|
||||
|
||||
@Slot(Coordinate)
|
||||
def abr_tweak(self, c: Coordinate):
|
||||
self.generic_post("beamline/tweak_abr_meas_pos", c.model_dump_json())
|
||||
|
||||
Reference in new issue
Block a user