Skip to content

Commit bdd30fd

Browse files
peterhollenderebrahimebrahim
authored andcommitted
Add duration logging to thermal test (#75)
1 parent 4241f74 commit bdd30fd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

notebooks/test_thermal_stress.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070

7171
def log_temperature():
7272
# Create a file with the current timestamp in the name
73+
start = time.time()
7374
timestamp = time.strftime("%Y%m%d_%H%M%S")
7475
filename = f"{timestamp}_temp.csv"
7576
shutdown = False
@@ -103,6 +104,7 @@ def log_temperature():
103104
logfile.flush() # Ensure the data is written immediately
104105
break
105106
time.sleep(log_interval)
107+
print(f"Temperature logging stopped after {time.time() - start:.2f} seconds. Data saved to {filename}.")
106108

107109
# Verify communication with the devices
108110
if not interface.txdevice.ping():

0 commit comments

Comments
 (0)