DAQ: have the get xtal size, best res, get best b factor added

This commit is contained in:
appleb_m
2026-06-26 16:37:16 +02:00
parent f33aa8c91a
commit ad44acabc0
+5 -2
View File
@@ -8,7 +8,8 @@ from jfjoch_client.exceptions import NotFoundException
from aare.common.coordinate import AerotechCoordinate, Coordinate, SmargonCoordinate
from aare.common.exception_handler import AutoRasterSampleSkipped, RasterScanException
from aare.common.find_xtal import create_quality_filtered_array, raster_centre_of_mass
from aare.common.find_xtal import create_quality_filtered_array, raster_centre_of_mass, get_xtal_size, get_best_res, \
get_best_b_factor
from aare.common.logger_events import (
geom_log_context,
log_ml_bundle_meta,
@@ -629,7 +630,9 @@ class RasterService:
},
),
)
self.ctx.deps.cfg.crystal_size = get_xtal_size(self.ctx.deps.cfg.crystal_size, result_array, r=request)
self.ctx.deps.cfg.last_best_res = get_best_res(result_list= scan_result.images)
self.ctx.deps.cfg.last_best_b_factor = get_best_b_factor(result_list=scan_result.images)
return CompletedRasterGridElem(
request=copy.deepcopy(request),
result=scan_result,