DAQ: added smart params
This commit is contained in:
+10
-1
@@ -29,7 +29,7 @@ from aaredaqlib.models import (
|
||||
PuckLoadedInfo,
|
||||
SampleShortInfoList,
|
||||
DAQStatusModel, BeamlineStatus, SessionStatus, SampleCameraSettings, AutofocusSettings, BoundingBoxModel,
|
||||
ZoomModeEnum, CrystalSize)
|
||||
ZoomModeEnum, CrystalSize, SimpleScanParameters)
|
||||
from aaredaqlib.raster_grid import RasterGridRequest, CompletedRasterGrid, CompletedRasterGridElem
|
||||
from aaredaqlib.rotation_scan import RotationScanRequest, CompletedRotationScan
|
||||
from aaredaqlib.sample_geometry import SampleGeometryModel
|
||||
@@ -62,6 +62,7 @@ class AareDAQ:
|
||||
self.crystal_size = CrystalSize(x=0,y=0,z=0)
|
||||
self.last_best_b_factor = None
|
||||
self.last_best_res = None
|
||||
self.auto_params = SimpleScanParameters()
|
||||
|
||||
@property
|
||||
def state(self) -> BeamlineStateEnum:
|
||||
@@ -85,6 +86,14 @@ class AareDAQ:
|
||||
|
||||
self.last_time = end - start
|
||||
|
||||
@property
|
||||
def smart_params(self) -> SimpleScanParameters:
|
||||
return self.auto_params
|
||||
|
||||
@smart_params.setter
|
||||
def smart_params(self, params: SimpleScanParameters):
|
||||
self.auto_params = params
|
||||
|
||||
@property
|
||||
def omega(self) -> float:
|
||||
return self.__devs.aerotech.omega
|
||||
|
||||
Reference in New Issue
Block a user