DAQ/GUI: updated beam location to use fixed exp and gain. This can be set now from teh GUi and stored in REDIS.

This commit is contained in:
appleb_m
2026-06-25 09:58:55 +02:00
parent 8c9f594d24
commit 14e8ef4bdf
+14
View File
@@ -529,6 +529,20 @@ async def save_abr_meas_pos(token: str = Depends(oauth2_scheme)):
daq.save_abr_meas_pos()
return "OK"
@app.post("/beamline/save_beam_location_camera_setting")
async def save_beam_location_camera_setting(token: str = Depends(oauth2_scheme)):
"""
Persist the camera's current gain/exposure as the beam-location preset for
the current zoom (stored in Redis, re-applied on future zoom changes).
Returns:
"OK" on success.
"""
auth.check_jwt_rw(cfg, auth.parse_token(token))
daq.save_beam_location_camera_setting()
return "OK"
@app.post("/beamline/anneal")
async def anneal(time_s: float, token: str = Depends(oauth2_scheme)):
"""