From 939956773ead3e6ed235573b3277cfc5946f72a0 Mon Sep 17 00:00:00 2001
From: "Xia, Ning" <ning.xia@tu-darmstadt.de>
Date: Mon, 6 Nov 2023 10:22:31 +0100
Subject: [PATCH] added comments

---
 main.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/main.py b/main.py
index c5fc989..a4257f8 100644
--- a/main.py
+++ b/main.py
@@ -39,8 +39,10 @@ while is_log_heater != 0 and is_log_heater != 1:
         print()
 
     try:
+        # Attempt to convert the input to int and store it.
         is_log_heater = int(input("measurement process = "))
     except ValueError:
+        # If conversion fails, set value to 2, in order to ask user again.
         is_log_heater = 2
 
 # Read the metadata necessary to control test rig from the setup file.
-- 
GitLab