fix: use res of selected gridscan image #220
+1
-1
@@ -6,7 +6,7 @@ readme = "README.md"
|
||||
requires-python = ">=3.11"
|
||||
dependencies = [
|
||||
"uv",
|
||||
"aarecommon>=0.8.0",
|
||||
"aarecommon>=0.9.0",
|
||||
"pydantic>=2.11",
|
||||
"numpy",
|
||||
"jfjoch_client>=1.0.0rc166",
|
||||
|
||||
@@ -18,6 +18,7 @@ from aarecommon.math.find_xtal import (
|
||||
compute_crystal_score_array,
|
||||
get_best_b_factor,
|
||||
get_best_res,
|
||||
get_res_of_image_number,
|
||||
get_xtal_size,
|
||||
raster_highest_score,
|
||||
)
|
||||
@@ -575,7 +576,13 @@ class RasterService:
|
||||
compute_crystal_score_array(scan_result.images),
|
||||
r=request,
|
||||
)
|
||||
self.ctx.deps.cfg.last_best_res = get_best_res(result_list=scan_result.images)
|
||||
|
||||
res_of_center = get_res_of_image_number(
|
||||
scan_result.images, analysis_results.com.max_image
|
||||
)
|
||||
if res_of_center is None:
|
||||
self.logger.warning("Selected image has no resolution estimate")
|
||||
self.ctx.deps.cfg.last_best_res = res_of_center
|
||||
self.ctx.deps.cfg.last_best_b_factor = get_best_b_factor(result_list=scan_result.images)
|
||||
return CompletedRasterGridElem(
|
||||
request=copy.deepcopy(request),
|
||||
|
||||
Reference in New Issue
Block a user