Browse Source

Report raw temperature as opposed to mean and standard deviation.

master
Carlos Reding 1 year ago
parent
commit
c32bf7a613
1 changed files with 3 additions and 6 deletions
  1. 3
    6
      puppeteer/__init__.py

+ 3
- 6
puppeteer/__init__.py View File

@@ -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)


Loading…
Cancel
Save