Fix error trying to purge empty scans if current scan has no images
Closes #563
This commit is contained in:
parent
6e74b07f46
commit
14cc3f9fcf
1 changed files with 3 additions and 3 deletions
|
|
@ -179,6 +179,9 @@ class SmartScanThing(lt.Thing):
|
|||
# Ensure any PreviewStitcher created cannot be reused.
|
||||
self._preview_stitcher = None
|
||||
|
||||
# Remove any scan folders containing zero images.
|
||||
self.purge_empty_scans(logger=logger)
|
||||
|
||||
@_scan_running
|
||||
def _check_background_and_csm_set(self) -> None:
|
||||
"""Before starting a scan, check that background and camera-stage-mapping are set.
|
||||
|
|
@ -386,9 +389,6 @@ class SmartScanThing(lt.Thing):
|
|||
self._return_to_starting_position()
|
||||
self._perform_final_stitch()
|
||||
|
||||
# Remove any scan folders containing zero images
|
||||
self.purge_empty_scans(logger=self._scan_logger)
|
||||
|
||||
@_scan_running
|
||||
def _main_scan_loop(self) -> None:
|
||||
"""Run the main loop of the scan.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue