From fa21224eaa831bba0af5a4bdb4a5ce0d1b4454fe Mon Sep 17 00:00:00 2001 From: Julian Stirling Date: Wed, 3 Jun 2026 17:36:48 +0100 Subject: [PATCH] reinstate capture_to_memory and save_from_memory as actions --- src/openflexure_microscope_server/things/camera/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/openflexure_microscope_server/things/camera/__init__.py b/src/openflexure_microscope_server/things/camera/__init__.py index 8df0cfa7..a2bf2564 100644 --- a/src/openflexure_microscope_server/things/camera/__init__.py +++ b/src/openflexure_microscope_server/things/camera/__init__.py @@ -617,6 +617,7 @@ class BaseCamera(OFMThing, ABC): buffer_id = self.capture_to_memory(capture_mode=capture_mode) self.save_from_memory(path=path, buffer_id=buffer_id) + @lt.action def capture_to_memory( self, capture_mode: str = "standard", buffer_max: int = 1, max_attempts: int = 5 ) -> int: @@ -654,6 +655,7 @@ class BaseCamera(OFMThing, ABC): image, ofm_metadata, capture_mode, buffer_max=buffer_max ) + @lt.action def save_from_memory( self, path: RelativeDataPath,