fix: coll_y work position is called in BEC, path to file should have lower case beamline

This commit is contained in:
2026-07-15 09:38:02 +02:00
parent fc2094c98e
commit 84ffbcfbaf
+2 -2
View File
@@ -346,7 +346,7 @@ class BECClientWorker:
return []
try:
self.client.config.update_session_with_file(
f"/sls/{self.beamline}/config/bec/production/{self._beamline_name}_bec/{self._beamline_name}_bec/device_configs/{self._beamline_name}-devices.yaml"
f"/sls/{self.beamline.value.lower()}/config/bec/production/{self._beamline_name}_bec/{self._beamline_name}_bec/device_configs/{self._beamline_name}-devices.yaml"
)
self.__init_beamline_environment()
logger.info(f"Reinitialised BEC planner and position devices using method={method}")
@@ -515,7 +515,7 @@ class BECClientWorker:
save_current_position(self.dev.bs_z, "safe")
def save_current_collimator_pos(self):
save_current_position(self.dev.coll_y, "work")
save_current_position(self.dev.coll_y, "in")
def save_current_aerotech_position(self):
save_current_position(self.dev.aerotech, "work", axis="x")