From 91ca3324c470781da7c930d3b31aad5c18f8229f Mon Sep 17 00:00:00 2001 From: Andrew de Quincey Date: Sat, 1 May 2021 10:38:16 +0100 Subject: [PATCH] more tweaks --- kiln-tuner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kiln-tuner.py b/kiln-tuner.py index e1114d6..dc8606c 100755 --- a/kiln-tuner.py +++ b/kiln-tuner.py @@ -28,7 +28,7 @@ def tune(csvfile, targettemp): # open the file to log data to f = open(csvfile, 'w') csvout = csv.writer(f) - csvout.write(['time', 'temperature']) + csvout.writerow(['time', 'temperature']) # construct the oven if config.simulate: @@ -66,7 +66,7 @@ def tune(csvfile, targettemp): if temp < targettemp: break - sys.stdout.write(f"\r{stage} {temp}/{targettemp} ") + sys.stdout.write(f"\r{stage} {temp:.2f}/{targettemp} ") sys.stdout.flush() time.sleep(config.sensor_time_wait)