From 2d946637eb13bf55f7e3da3672ad692c1599dcaf Mon Sep 17 00:00:00 2001 From: jaknapper Date: Fri, 16 May 2025 15:26:49 +0100 Subject: [PATCH] Added buffer_count as an argument of streaming --- 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 24219f09..dcdf3e8f 100644 --- a/src/openflexure_microscope_server/things/camera/__init__.py +++ b/src/openflexure_microscope_server/things/camera/__init__.py @@ -79,7 +79,7 @@ class CameraProtocol(Protocol): """Acquire one image from the preview stream and return its size""" ... - def start_streaming(self, main_resolution) -> None: + def start_streaming(self, main_resolution, buffer_count) -> None: """Start (or stop and restart) the camera with the given resolution for the main stream""" ... @@ -193,7 +193,7 @@ class CameraStub(BaseCamera): raise NotImplementedError("Cameras must not inherit from CameraStub") @thing_action - def start_streaming(self, main_resolution) -> None: + def start_streaming(self, main_resolution, buffer_count) -> None: """Start (or stop and restart) the camera with the given resolution for the main stream""" raise NotImplementedError("Cameras must not inherit from CameraStub")