DAQ/GUI: added jfjoch_status to daq for progress bar in GUI

This commit is contained in:
appleb_m committed 2025-12-02 13:34:23 +01:00
1 parent 4d068a49f9
commit 2142097ce6
4 files changed
+39 -3

No files matched your search

+3 -1
View File
@@ -1298,6 +1298,7 @@ class AareDAQ:
spreadsheet_params, file_prefix = self.spreadsheet_params()
logger.debug(f"spreadsheet_params: {spreadsheet_params}")
smart_params = self.__cfg.auto_params
logger.debug(f"smart_params: {smart_params}")
default_params = SimpleScanParameters(exp_time_s=0.04, dtz=110, incr_omega_deg=0.2)
#if file_prefix is not None:
# default_params.file_prefix = file_prefix
@@ -1540,7 +1541,7 @@ class AareDAQ:
@property
def status(self) -> DAQStatusModel:
# session should be set by FastAPI server
# session is initialised here and set by FastAPI server
return DAQStatusModel(
state=self.state,
busy=self.busy,
@@ -1550,6 +1551,7 @@ class AareDAQ:
session=SessionStatus(),
diffraction=self.diffraction_geometry,
box=self.__saved_box,
jfjoch_status = self.__jfjoch.status(),
last_best_res = self.__cfg.last_best_res,
last_best_b_factor = self.__cfg.last_best_b_factor,
crystal_size = self.__cfg.crystal_size
+4
View File
@@ -146,6 +146,10 @@ class JFJochWrapper:
self.__api.wait_till_done_post_with_http_info(timeout=math.ceil(timeout))
return self.__api.result_scan_get()
def status(self) -> jfjoch_client.models.BrokerStatus:
l = self.__api.status_get()
return l
def detector(self) -> jfjoch_client.models.DetectorListElement:
l = self.__api.config_select_detector_get()