From ce5fade2ff24042d967e76b1d0ad0fd575f45650 Mon Sep 17 00:00:00 2001 From: "Timur A. Fatkhullin" Date: Thu, 10 Oct 2024 11:51:54 +0300 Subject: [PATCH] fix --- focus_utils.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/focus_utils.py b/focus_utils.py index 7b178cd..4425276 100644 --- a/focus_utils.py +++ b/focus_utils.py @@ -394,6 +394,7 @@ def focussingSequence( ret_code = set_focus_func(foc_val) if ret_code: + ret_val["ret_code"] = ret_code print("FAIL!", file=log_output) break else: @@ -405,9 +406,13 @@ def focussingSequence( print(log_ident, file=log_output, end="") print("get image '{}' ...\t".format(full_filename), file=log_output, end="") - get_image_func(full_filename, seq_kwds["exp_time"]) - - print("OK", file=log_output) + ret_code = get_image_func(full_filename, seq_kwds["exp_time"]) + if ret_code: + ret_val["ret_code"] = ret_code + print("FAIL!", file=log_output) + break + else: + print("OK", file=log_output) futures.append(executor.submit(amt.compute_mean_flux_radius, fname, **seq_kwds))