Skip to content

Commit

Permalink
fix review
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickcleeve2 committed Jul 5, 2024
1 parent 346be45 commit 232bac6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/odemis/acq/stitching/_tiledacq.py
Original file line number Diff line number Diff line change
Expand Up @@ -1146,13 +1146,13 @@ def run(self):
max_wait_t = estimate_autofocus_in_roi_time(focus_points_per_area, self._det) * 3 + 1
focus_points = self._future.running_subf.result(max_wait_t)
except TimeoutError:
self.streams[0].is_active.value = False
logging.debug(f"Autofocus timed out for roi number {idx}, with bounding box: {roi} [m]")
raise
except Exception:
self.streams[0].is_active.value = False
logging.debug(f"Autofocus failed for roi number {idx}, with bounding box: {roi} [m]")
raise
finally:
self.streams[0].is_active.value = False

# cancel the sub future
with self._future._task_lock:
Expand Down

0 comments on commit 232bac6

Please sign in to comment.