refactor: cleanup of mo1_bragg

This commit is contained in:
gac-x01da
2024-09-13 15:17:37 +02:00
parent cc51aefb57
commit ab70895fe6
+2 -2
View File
@@ -241,7 +241,7 @@ class Mo1Bragg(Device, PositionerBase):
the NI motor controller via web sockets.
"""
USER_ACCESS = ["set_xtal", "set_advanced_xas_settings", "stop_scan"]
USER_ACCESS = []
crystal = Cpt(Mo1BraggCrystal, "")
encoder = Cpt(Mo1BraggEncoder, "")
@@ -581,7 +581,7 @@ class Mo1Bragg(Device, PositionerBase):
raise TimeoutError(
f"Timeout after {self.timeout_for_pvwait} while waiting for calc done,"
)
time.sleep(0.25)
time.sleep(0.25) # Needed due to update frequency of softIOC
if mode == "AngleToEnergy":
return self.calculator.calc_energy.get()
elif mode == "EnergyToAngle":