From 8002600fcf183ef09a0528233315830e6eb90cf6 Mon Sep 17 00:00:00 2001 From: Julian Stirling Date: Fri, 27 Jun 2025 16:40:18 +0000 Subject: [PATCH] Apply suggestions from code review of branch fast-stack Co-authored-by: Joe Knapper --- src/openflexure_microscope_server/things/autofocus.py | 2 +- tests/test_stack.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openflexure_microscope_server/things/autofocus.py b/src/openflexure_microscope_server/things/autofocus.py index 237122a8..bf507724 100644 --- a/src/openflexure_microscope_server/things/autofocus.py +++ b/src/openflexure_microscope_server/things/autofocus.py @@ -634,7 +634,7 @@ class AutofocusThing(Thing): :buffer_max: The maximum number of images to tell the camera to keep in memory for saving once the stack is complete - :return: A CaatureInfo object containing the capture information including its + :return: A CaptureInfo object containing the capture information including its camera buffer_id needed for saving. """ stage_location = stage.position diff --git a/tests/test_stack.py b/tests/test_stack.py index a8c81b7f..c9fad430 100644 --- a/tests/test_stack.py +++ b/tests/test_stack.py @@ -226,7 +226,7 @@ def test_retrieval_of_captures(start): assert _get_capture_index_by_id(captures, buffer_id) == i assert _get_capture_by_id(captures, buffer_id) is capture - # Check errors are raised when supplying ids that aren't int the list + # Check errors are raised when supplying ids that aren't in the list with pytest.raises(ValueError): _get_capture_index_by_id(captures, start - 1) with pytest.raises(ValueError):