From 2205459aebfa8b023c04dcbeb9cea5ae972a1588 Mon Sep 17 00:00:00 2001 From: jaknapper Date: Wed, 7 May 2025 19:58:24 +0100 Subject: [PATCH] Removed z_stack Thing from rebase --- src/openflexure_microscope_server/things/smart_scan.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/openflexure_microscope_server/things/smart_scan.py b/src/openflexure_microscope_server/things/smart_scan.py index 940c1d3a..21a541ac 100644 --- a/src/openflexure_microscope_server/things/smart_scan.py +++ b/src/openflexure_microscope_server/things/smart_scan.py @@ -13,7 +13,6 @@ from datetime import datetime from subprocess import CompletedProcess, Popen, PIPE, SubprocessError, STDOUT import glob import json -import piexif import re from labthings_fastapi.thing import Thing @@ -40,9 +39,8 @@ AutofocusDep = direct_thing_client_dependency(AutofocusThing, "/autofocus/") BackgroundDep = direct_thing_client_dependency( BackgroundDetectThing, "/background_detect/" ) -ZStackDep = direct_thing_client_dependency(ZStackThing, "/z_stack/") -IMAGE_REGEX = re.compile(r"-?[0-9]+_-?[0-9]+\.jpeg$") +IMAGE_REGEX = re.compile(r"-?[0-9]+_-?[0-9]+\.jpeg$") def unpack_autofocus(scan_data): @@ -699,7 +697,6 @@ class SmartScanThing(Thing): raise HTTPException(404, "File not found") return FileResponse(path) - @thing_property def max_range(self) -> int: """The maximum distance from the centre of the scan before we break"""