From 9257c4489efecf400ae4d5964fbf0f24b6bf9e08 Mon Sep 17 00:00:00 2001 From: Julian Stirling Date: Thu, 21 Aug 2025 14:08:35 +0000 Subject: [PATCH] Apply suggestions from code review of branch prevent-broken-frames-ending-scans Co-authored-by: Beth Probert --- src/openflexure_microscope_server/things/camera/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openflexure_microscope_server/things/camera/__init__.py b/src/openflexure_microscope_server/things/camera/__init__.py index 464909d9..cca92ff2 100644 --- a/src/openflexure_microscope_server/things/camera/__init__.py +++ b/src/openflexure_microscope_server/things/camera/__init__.py @@ -273,7 +273,7 @@ class BaseCamera(lt.Thing): ) -> JPEGBlob: """Acquire one image from the preview stream and return as blob of JPEG data. - Note: in rare cases the JPEG stream may be broken. This cab cause an OS error + Note: in rare cases the JPEG stream may be broken. This can cause an OS error when loading the image. If loading with PIL, as long as the header data is complete, this error will not be raised until the data is accessed. Consider using ``grab_jpeg_as_array`` instead.