anneal functionality added, including wait time, SHould be tested/optimised later.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
# Abstractions of devices for beamline
|
||||
import time
|
||||
|
||||
# Each "standard" device needs three elements:
|
||||
# - property to read device value
|
||||
@@ -208,8 +209,12 @@ class BeamlineDevices:
|
||||
def cryojet_temp(self) -> float:
|
||||
return self.__cryojet_temperature_get.get()
|
||||
|
||||
def anneal(self, time: float):
|
||||
pass
|
||||
def anneal(self, wait_time: float):
|
||||
logger.warning("Untested annealing procedure, use with caution")
|
||||
logger.info(f"Annealing for {wait_time} seconds")
|
||||
self.tell.anneal_in()
|
||||
time.sleep(wait_time)
|
||||
self.tell.anneal_out()
|
||||
|
||||
@property
|
||||
def cryojet_pos(self) -> StagePositionEnum:
|
||||
|
||||
Reference in New Issue
Block a user