From 0554c3ed4b449ad12cf43656ff4cef75ea1df49c Mon Sep 17 00:00:00 2001 From: "Timur A. Fatkhullin" Date: Wed, 24 Jul 2024 16:08:24 +0300 Subject: [PATCH] ... --- focus_sequence_SKEL.py | 11 ++++++----- focus_sequence_Z1000_Ixon.py | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/focus_sequence_SKEL.py b/focus_sequence_SKEL.py index d3d0477..5727d04 100755 --- a/focus_sequence_SKEL.py +++ b/focus_sequence_SKEL.py @@ -14,15 +14,16 @@ import numpy as np import subprocess as sp -# --- FLI-hardware related (ROBOTEL variant) - - +# +# The next functions must return 0 in the case of successfull operation and +# non-zero otherwise +# def set_focus(foc_val): - pass + return 0 def get_image(filename, exp_time): - pass + return 0 if __name__ == "__main__": diff --git a/focus_sequence_Z1000_Ixon.py b/focus_sequence_Z1000_Ixon.py index d163158..c437f25 100755 --- a/focus_sequence_Z1000_Ixon.py +++ b/focus_sequence_Z1000_Ixon.py @@ -26,7 +26,7 @@ def set_focus(foc_val): sock.send("goto={:g}".format(foc_val)) resp = sock.recv(20) - if resp != "OK\n": + if resp != "OK": sock.close() return 1