Refactor TELL integration and update dependencies.
Replaced direct puck management logic with a WebSocket-based system for real-time updates from TELL. Introduced `tellupdater.py` to handle updates and improved AareDB client usage for cleaner API interactions. Updated `pyproject.toml` files to include dependency changes, ensuring compatibility with new TELL workflows.
This commit is contained in:
1 parent
4b1acfb827
commit
c6a4cf0e8b
1 file changed
-10
@@ -59,16 +59,6 @@ def timer_update_pucks_beamline():
|
||||
detected_pucks = tell_client.get_detected_pucks()
|
||||
aare_db.set_pucks_beamline(detected_pucks)
|
||||
|
||||
# Convert to list[PuckWithTellPosition]
|
||||
pwtp_list = convert_pucks(detected_pucks)
|
||||
|
||||
# Only send if state changed
|
||||
if not pucks_equal(pwtp_list, last_pucks_sent):
|
||||
tell_client.set_samples_info(pwtp_list)
|
||||
last_pucks_sent = pwtp_list
|
||||
else:
|
||||
print("[TIMER] No puck state change, not sending to TELL.")
|
||||
|
||||
except Exception as exc:
|
||||
print(f"[ERROR][Timer] {exc}")
|
||||
|
||||
|
||||
Reference in new issue
Block a user