add a mock grid simulation option at no_beam condition, default to be false

This commit is contained in:
2026-04-24 17:03:01 +02:00
parent 74c3a9f4ba
commit e942fc71ea
+4
View File
@@ -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