From af785406ccb1d97746c76abb2edb0e25d95402a0 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 24 Mar 2010 15:16:23 -0400 Subject: [PATCH] Removed ineffectual logging code, bumped to v0.2 --- temperature.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/temperature.py b/temperature.py index 3028a31..4874bf0 100644 --- a/temperature.py +++ b/temperature.py @@ -1,13 +1,11 @@ import Melcor import time -import data_logger import stripchart -log_dir = "/home/wking/rsrch/data/temperature" +VERSION = "0.2" # buzzwords: 'integrator windup' for integral term built up during a slow approach. - class error (Exception) : "Errors with the temperature controller" pass @@ -531,7 +529,7 @@ class tempController : err = self.T.write(register, value) if err != 0 : raise errorMelcor - def getDeadtimeData(self, num_oscillations=10, curHysteresis=0.8, log=True) : + def getDeadtimeData(self, num_oscillations=10, curHysteresis=0.8) : orig_heat_gains = self.getHeatingGains() orig_cool_gains = self.getCoolingGains() if self.verbose : @@ -590,8 +588,6 @@ class tempController : print " Restoring gains" self.setHeatingGains(*orig_heat_gains) self.setCoolingGains(*orig_cool_gains) - if log == True : - log = 1# MARK def time_getTemp(self) : "Rough estimate timeing of getTemp(), takes me about 0.1s" start = time.time() -- 2.26.2