|
|
@@ -109,18 +109,15 @@ def TemperatureTest(Connection, ConnectionStatus): |
|
|
|
Box = SetupDevice(panel_type='rgb', default_filter='No_Filter') |
|
|
|
# Measure current temperature and store it in `Box' log. |
|
|
|
CurrentTemperature = Box.report_temperature() |
|
|
|
Box._status_list.append(tuple(["Current Temperature: ", |
|
|
|
str(CurrentTemperature.mean().round(decimals=2)) + "±" + |
|
|
|
str(CurrentTemperature.std().round(decimals=2))])) |
|
|
|
Box._status_list.append(tuple(["Current Temperatures: ", |
|
|
|
CurrentTemperature])) |
|
|
|
# Turn heater ON for 10.0 seconds to let `Box' warm up. |
|
|
|
Box._heater.write(Box._HEATER_PIN, 1) # ON |
|
|
|
time.sleep(10.0) |
|
|
|
Box._heater.write(Box._HEATER_PIN, 0) # OFF |
|
|
|
# Measure new temperature and store in `Box' log. |
|
|
|
NewTemperature = Box.report_temperature() # Retrieve temperature after heater ON. |
|
|
|
Box._status_list.append(tuple(["New Temperature: ", |
|
|
|
str(NewTemperature.mean().round(decimals=2)) + "±" + |
|
|
|
str(NewTemperature.std().round(decimals=2))])) |
|
|
|
Box._status_list.append(tuple(["New Temperatures: ", NewTemperature])) |
|
|
|
# Release hardware and report. |
|
|
|
Box.terminate_device(Connection, ConnectionStatus) |
|
|
|
|