Oven watcher time hard coded, added test json
This commit is contained in:
+1
-1
@@ -573,7 +573,7 @@ class SimulatedOven(Oven):
|
||||
if heat_on > 0:
|
||||
self.heat = heat_on
|
||||
|
||||
log.info("simulation: -> %dW heater: %.0f -> %dW oven: %.0f -> %dW env" % (int(self.p_heat * pid),
|
||||
log.info("simulation: -> %dW heater: %.0f -> %dW oven: %.0f -> %dW env" % (int(self.p_heat * pid),
|
||||
self.t_h,
|
||||
int(self.p_ho),
|
||||
self.t,
|
||||
|
||||
+1
-3
@@ -35,10 +35,8 @@ class OvenWatcher(threading.Thread):
|
||||
self.recording = False
|
||||
self.notify_all(oven_state)
|
||||
|
||||
time.sleep(0.5)
|
||||
|
||||
time.sleep(self.oven.time_step)
|
||||
|
||||
|
||||
def lastlog_subset(self,maxpts=50):
|
||||
'''send about maxpts from lastlog by skipping unwanted data'''
|
||||
totalpts = len(self.last_log)
|
||||
|
||||
Reference in New Issue
Block a user