From a4801ad8615bd4dd1a503622d0f41280b50f1b14 Mon Sep 17 00:00:00 2001 From: jaknapper Date: Mon, 28 Apr 2025 13:49:37 +0100 Subject: [PATCH] Update camera thing to match upstream --- src/openflexure_microscope_server/things/camera/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openflexure_microscope_server/things/camera/__init__.py b/src/openflexure_microscope_server/things/camera/__init__.py index 48a9b21d..8d3fab23 100644 --- a/src/openflexure_microscope_server/things/camera/__init__.py +++ b/src/openflexure_microscope_server/things/camera/__init__.py @@ -44,7 +44,7 @@ class CameraProtocol(Protocol): def capture_array( self, - resolution: Literal["lores", "main", "full"] = "main", + stream_name: Literal["main", "lores", "raw"] = "main", ) -> NDArray: ... def capture_jpeg( @@ -166,7 +166,7 @@ class CameraStub(BaseCamera): @thing_action def capture_array( self, - resolution: Literal["lores", "main", "full"] = "main", + stream_name: Literal["main", "lores", "raw"] = "main", ) -> NDArray: raise NotImplementedError("Cameras must not inherit from CameraStub")