Don't move further after the final image of the stack
This commit is contained in:
parent
ade713b6d0
commit
9b2ccea660
1 changed files with 5 additions and 2 deletions
|
|
@ -71,8 +71,11 @@ class ZStackThing(Thing):
|
|||
logger=logger,
|
||||
metadata_getter=metadata_getter,
|
||||
)
|
||||
stage.move_relative(z=stack_dz)
|
||||
time.sleep(0.3)
|
||||
|
||||
# If the stack isn't complete yet, move
|
||||
if capture_count + 1 < images_to_capture:
|
||||
stage.move_relative(z=stack_dz)
|
||||
time.sleep(0.3)
|
||||
|
||||
self.copy_central_image(images_dir, stack_dir, logger)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue