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:
@@ -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)):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user