refactor: cleanup of mo1_bragg
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user