fix: save collimator positions #149
@@ -714,7 +714,7 @@ async def bec_save_current_collimator_pos(token: str = Depends(oauth2_scheme)) -
|
||||
data = auth.parse_token(token)
|
||||
auth.check_jwt_staff_only(data)
|
||||
daq.bec_save_current_collimator_pos()
|
||||
return {"ok": True, "message": "Saved current BEC collimator work position."}
|
||||
return {"ok": True, "message": "Saved current BEC collimator 'in' positions."}
|
||||
|
||||
|
||||
@app.post("/bec/save_current_aerotech_position")
|
||||
|
||||
@@ -495,7 +495,8 @@ class BECClientWorker:
|
||||
self.macros.save_current_position(self.dev.bs_x, "in")
|
||||
|
||||
def save_current_collimator_pos(self):
|
||||
self.macros.save_current_position(self.dev.coll_y, "work")
|
||||
self.macros.save_current_position(self.dev.coll_x, "in")
|
||||
self.macros.save_current_position(self.dev.coll_y, "in")
|
||||
|
||||
def save_current_aerotech_position(self):
|
||||
self.macros.save_current_position(self.dev.aerotech, "work", axis="x")
|
||||
|
||||
@@ -393,7 +393,7 @@ class LocalContactPanel(QFrame):
|
||||
)
|
||||
device_config_layout.addWidget(
|
||||
self._make_button(
|
||||
"Save current collimator position",
|
||||
"Save current collimator position as x and y 'in'.",
|
||||
self._daq.bec_save_current_collimator_pos,
|
||||
"Saving current BEC collimator work position.",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user