From d1f6df52234e2014520bf70654b605dfaf829109 Mon Sep 17 00:00:00 2001 From: appleb_m Date: Fri, 12 Jun 2026 13:55:27 +0200 Subject: [PATCH] anneal functionality added, including wait time, SHould be tested/optimised later. --- src/aare/daq/devices.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/aare/daq/devices.py b/src/aare/daq/devices.py index 79f9e439..4aee1ebd 100644 --- a/src/aare/daq/devices.py +++ b/src/aare/daq/devices.py @@ -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: