DAQ: bug fixes in auto_center - may need rewriting
This commit is contained in:
1 parent
689c4c5474
commit
16ac939868
1 file changed
+3
-2
+3
-2
@@ -787,13 +787,13 @@ class AareDAQ:
|
||||
raise
|
||||
|
||||
|
||||
def __auto_center(self, grid: RasterGridRequest) -> CompletedRasterGrid | None:
|
||||
def __auto_center(self, request: RasterGridRequest) -> CompletedRasterGrid | None:
|
||||
sample = self.sample
|
||||
|
||||
if sample is None:
|
||||
raise Exception("Sample must be mounted to auto center")
|
||||
|
||||
old_prefix = grid.file_prefix
|
||||
old_prefix = request.file_prefix
|
||||
geom = self.sample_geometry
|
||||
r = self.__ml_bounding_box(sample.db_id, f"ml_{geom.omega_deg:.2f}deg")
|
||||
|
||||
@@ -804,6 +804,7 @@ class AareDAQ:
|
||||
|
||||
if r is not None:
|
||||
geom = self.sample_geometry
|
||||
grid = copy.deepcopy(request)
|
||||
grid.smargon_top_left = r.smargon_top_left
|
||||
grid.grid_size_mm = r.grid_size_mm
|
||||
grid.n_x = r.n_x
|
||||
|
||||
Reference in new issue
Block a user