@@ -222,22 +222,28 @@ def _abort_exposure(self):
222
222
self ._driver .cancel_exposure ()
223
223
self ._camera_status = ICamera .ExposureStatus .IDLE
224
224
225
- def get_cooling_status (self , * args , ** kwargs ) -> (bool , float , float , dict ):
225
+ def get_cooling_status (self , * args , ** kwargs ) -> (bool , float , float ):
226
226
"""Returns the current status for the cooling.
227
227
228
228
Returns:
229
229
Tuple containing:
230
230
Enabled (bool): Whether the cooling is enabled
231
231
SetPoint (float): Setpoint for the cooling in celsius.
232
232
Power (float): Current cooling power in percent or None.
233
- Temperatures (dict): Dictionary of sensor name/value pairs with temperatures
234
233
"""
235
234
enabled = self ._temp_setpoint is not None
236
- temps = {
235
+ return enabled , self ._temp_setpoint , self ._driver .get_cooler_power ()
236
+
237
+ def get_temperatures (self , * args , ** kwargs ) -> dict :
238
+ """Returns all temperatures measured by this module.
239
+
240
+ Returns:
241
+ Dict containing temperatures.
242
+ """
243
+ return {
237
244
'CCD' : self ._driver .get_temp (FliTemperature .CCD ),
238
245
'Base' : self ._driver .get_temp (FliTemperature .BASE )
239
246
}
240
- return enabled , self ._temp_setpoint , self ._driver .get_cooler_power (), temps
241
247
242
248
def set_cooling (self , enabled : bool , setpoint : float , * args , ** kwargs ):
243
249
"""Enables/disables cooling and sets setpoint.
0 commit comments