Skip to content

Commit c59ad67

Browse files
author
rb_chip
committed
AndorCamera: Tested temperature setting, and realized that the status was being called for
before enabling cooldown, duh.
1 parent ec68ee3 commit c59ad67

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

AndorSolis/andor_sdk/andor_utils.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,6 @@ def enable_cooldown(
147147
# thermalization will happen over this timescale)
148148
thermal_timeout = 10 * s
149149

150-
# Pull initial temperature and cooling status
151-
self.temperature, self.temperature_status = GetTemperatureF()
152-
153150
# When cooling down, set fan depending on the cooling reservoir
154151
if water_cooling:
155152
SetFanMode(2)
@@ -161,6 +158,9 @@ def enable_cooldown(
161158
SetTemperature(temperature_setpoint)
162159
CoolerON()
163160

161+
# Pull initial temperature and cooling status
162+
self.temperature, self.temperature_status = GetTemperatureF()
163+
164164
# Wait until stable
165165
if wait_until_stable:
166166
while 'TEMP_NOT_REACHED' in self.temperature_status:
@@ -305,6 +305,7 @@ def setup_acquisition(self, added_attributes=None):
305305
self.enable_cooldown(
306306
self.acquisition_attributes['temperature'],
307307
self.acquisition_attributes['water_cooling'],
308+
wait_until_stable = True,
308309
)
309310

310311
# Get current temperature and temperature status

0 commit comments

Comments
 (0)