From eafeaca3ffa8257bebd6e60029115a51fa978777 Mon Sep 17 00:00:00 2001 From: Joe Knapper Date: Tue, 20 Feb 2024 12:22:06 +0000 Subject: [PATCH] Readd zip name --- src/openflexure_microscope_server/things/smart_scan.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/openflexure_microscope_server/things/smart_scan.py b/src/openflexure_microscope_server/things/smart_scan.py index cb2a5a5e..7613c59e 100644 --- a/src/openflexure_microscope_server/things/smart_scan.py +++ b/src/openflexure_microscope_server/things/smart_scan.py @@ -1057,6 +1057,8 @@ class SmartScanThing(Thing): raise FileNotFoundError(f"Tried to make a zip archive of {images_folder} but it does not exist.") # logger.info("Creating zip archive of images (may take some time)...") + zip_fname = f'{os.path.join(scan_folder, "images")}.zip' + # Create an empty zip file - we don't want to autofill it with files, # as some of them should only be added at the end (as we can't overwrite) # them once they change