From 73530c8af235f16c5c8400f828f5c22822f18dc6 Mon Sep 17 00:00:00 2001 From: jbruce12000 Date: Tue, 8 Jun 2021 22:23:17 -0400 Subject: [PATCH] changing print statements for more flexibility with versions --- kiln-tuner.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kiln-tuner.py b/kiln-tuner.py index b02869a..8868295 100755 --- a/kiln-tuner.py +++ b/kiln-tuner.py @@ -65,8 +65,7 @@ def recordprofile(csvfile, targettemp): if temp < targettemp: break - sys.stdout.write(f"\r{stage} {temp:.2f}/{targettemp} ") - sys.stdout.flush() + print("stage = %s, actual = %s, target = %s" % (stage,temp,targettemp)) time.sleep(1) f.close() @@ -206,4 +205,4 @@ if __name__ == "__main__": exit(1) else: - raise NotImplementedError(f"Unknown mode {args.mode}") + raise NotImplementedError("Unknown mode %s" % args.mode)