This brings some crufty bits up to date after
5d9293b (Copy fit.py
from Hooke to remove dependency, and generalize temp -> PV, etc.,
2011-07-27).
while True:
time.sleep(next_time - time.time())
tstr = time.strftime('%Y-%m-%d %H:%M:%S')
- temp = str(b.get_temp())
- ambient = str(b.get_ambient_temp())
+ temp = str(b.get_pv())
+ ambient = str(b.get_ambient_pv())
f.write('\t'.join([tstr, temp, ambient]) + '\n')
f.flush()
print('\t'.join([tstr, temp, ambient]))
self.set_heating_gains(proportional=p)
while True:
_LOG.debug('waiting for an out-of-propband temperature')
- if abs(self.get_temp() - sp) > small_temp_range:
+ if abs(self.get_pv() - sp) > small_temp_range:
break # we're out of the propband, I-term resets
self.set_cooling_gains(proportional=cp)
self.set_heating_gains(proportional=hp)
_time.sleep(sleep_time)
def _time_function(self, function, args=(), kwargs=None, count=10):
- "Rough estimate timing of get_temp(), takes me about 0.1s"
+ "Rough estimate timing of get_pv(), takes me about 0.1s"
if kwargs is None:
kwargs = {}
start = _time.time()