From a34a9f99c5948d1c1555566a531f59d9f7be8193 Mon Sep 17 00:00:00 2001 From: Joe Knapper Date: Mon, 6 Oct 2025 10:16:22 +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 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/openflexure_microscope_server/things/camera/simulation.py b/src/openflexure_microscope_server/things/camera/simulation.py index e4df0e9a..7c32aa08 100644 --- a/src/openflexure_microscope_server/things/camera/simulation.py +++ b/src/openflexure_microscope_server/things/camera/simulation.py @@ -92,9 +92,7 @@ class SimulatedCamera(BaseCamera): Currently only tests that the sample size is not greater than the canvas size in any dimension. """ # Iterate through elements in both tuples. As strict is False, will use the shorter of the two tuples - for _i, (a, b) in enumerate( - zip(self.canvas_shape, self.sample_limits, strict=False) - ): + for a, b in zip(self.canvas_shape, self.sample_limits, strict=False): if a < b: raise ValueError( "Canvas size must be bigger than or equal to canvas size"