Skip to content
Snippets Groups Projects
Commit 0b4a0983 authored by Xia, Ning's avatar Xia, Ning :penguin:
Browse files

update main, check user input

parent af9b454f
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,10 @@ while is_log_heater != 0 and is_log_heater != 1:
print("1 = measuring calorimeter constant")
print()
is_log_heater = int(input("measurement process = "))
try:
is_log_heater = int(input("measurement process = "))
except ValueError:
is_log_heater = 2
# Read the metadata necessary to control test rig from the setup file.
metadata = m_json.get_metadata_from_setup(path_setup)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment