From 94a9c2be8f13f35013374ea8fc4e3c46b2da6932 Mon Sep 17 00:00:00 2001 From: Joe Knapper Date: Wed, 18 Feb 2026 15:15:57 +0000 Subject: [PATCH] Use options argument in UI for objective --- .../things/camera/simulation.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/openflexure_microscope_server/things/camera/simulation.py b/src/openflexure_microscope_server/things/camera/simulation.py index cbc6a656..70c3f7cb 100644 --- a/src/openflexure_microscope_server/things/camera/simulation.py +++ b/src/openflexure_microscope_server/things/camera/simulation.py @@ -546,7 +546,19 @@ class SimulatedCamera(BaseCamera): property_control_for(self, "blob_density", label="Sample Density"), property_control_for(self, "colour", label="Sample Colour"), property_control_for(self, "noise_level", label="Noise Level"), - property_control_for(self, "objective", label="Objective Magnification"), + property_control_for( + self, + "objective", + label="Objective Magnification", + options={ + "4x": 4, + "10x": 10, + "20x": 20, + "40x": 40, + "60x": 60, + "100x": 100, + }, + ), ]