From 39b085a0c296473f7ed22da4ebcb238bf0b9e613 Mon Sep 17 00:00:00 2001 From: Joe Knapper Date: Thu, 25 Sep 2025 13:35:55 +0000 Subject: [PATCH] Apply suggestions from code review of branch sample-size-sim Co-authored-by: Julian Stirling --- src/openflexure_microscope_server/things/camera/simulation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openflexure_microscope_server/things/camera/simulation.py b/src/openflexure_microscope_server/things/camera/simulation.py index a78215fe..7a1900c7 100644 --- a/src/openflexure_microscope_server/things/camera/simulation.py +++ b/src/openflexure_microscope_server/things/camera/simulation.py @@ -75,7 +75,7 @@ class SimulatedCamera(BaseCamera): self.shape = shape self.glyph_shape = glyph_shape self.canvas_shape = canvas_shape - self.sample_limits = sample_limits + self.sample_limits = canvas_shape[:2] if sample_limits is None else sample_limits self.frame_interval = frame_interval self._capture_thread: Optional[Thread] = None self._capture_enabled = False