From 4379b8a1a54c4cff8e7405edbb3527d9441dbb6f Mon Sep 17 00:00:00 2001 From: David Perl Date: Mon, 24 Aug 2026 16:13:17 +0200 Subject: [PATCH] fix: dont unmoount sample on park and dry recovery - remove now-redundant "dry" endpoint --- src/aare/daq/server.py | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/src/aare/daq/server.py b/src/aare/daq/server.py index 8cf15fda..28b71a94 100644 --- a/src/aare/daq/server.py +++ b/src/aare/daq/server.py @@ -1081,31 +1081,12 @@ async def park_and_dry(token: str = Depends(oauth2_scheme)): Returns: Dictionary with status and message. """ - # TODO: add unmount toggle, and combine aprk_and_dry and tell_dry to one command that takes park and unmount as signals auth.check_jwt_rw(cfg, auth.parse_token(token)) logger.debug("Executing unmount, dry and park") - daq.park_and_dry(park=True, unmount=True) + daq.park_and_dry(park=True, unmount=False) return {"ok": True, "message": "TELL has been dried and parked"} -@app.post("/tell/dry") -async def tell_dry(token: str = Depends(oauth2_scheme)) -> dict: - """ - Execute a TELL dry cycle. Staff only. - - Args: - token: OAuth2 access token. - - Returns: - Dictionary with status and message. - """ - data = auth.parse_token(token) - auth.check_jwt_rw(data) - logger.debug("Executing dry and return to dewar") - daq.park_and_dry(park=False, unmount=False) - return {"ok": True, "message": "TELL dry cycle completed."} - - @app.post("/tell/toggle_blower") async def tell_toggle_blower(token: str = Depends(oauth2_scheme)) -> dict: """