changing print statements for more flexibility with versions

This commit is contained in:
jbruce12000 2021-06-08 22:23:17 -04:00
parent 4ef2782d9a
commit 73530c8af2

View File

@ -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)