From e942fc71eaf99ebd47c2bafdafa8b20c9ddfaa85 Mon Sep 17 00:00:00 2001 From: Dawn Date: Fri, 24 Apr 2026 17:03:01 +0200 Subject: [PATCH] add a mock grid simulation option at no_beam condition, default to be false --- src/aare/common/raster_grid.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/aare/common/raster_grid.py b/src/aare/common/raster_grid.py index 7c4327ff..676cf2d9 100644 --- a/src/aare/common/raster_grid.py +++ b/src/aare/common/raster_grid.py @@ -32,6 +32,10 @@ class RasterGridRequest(BaseModel): visible: bool = True + # When True, skip all hardware and generate simulated diffraction data. + # The file_prefix will have "_SIMU" appended so the DB record is identifiable. + no_beam: bool = False + def get_image_number(self) -> int: return self.n_x * self.n_y