Skip to content
Snippets Groups Projects
Commit 0ce5e68e authored by Daniele Nicolodi's avatar Daniele Nicolodi
Browse files

meerstetterTEC: Fix saving data to data file

parent 47498937
No related branches found
No related tags found
No related merge requests found
...@@ -263,7 +263,7 @@ def monitor(obj, datadir, dataname): ...@@ -263,7 +263,7 @@ def monitor(obj, datadir, dataname):
for timestamp in utils.tick(0.1): for timestamp in utils.tick(0.1):
temp = obj.get_temperature() temp = obj.get_temperature()
current = obj.get_output_current() current = obj.get_output_current()
values = itertools.chain.from_iterable(zip(temp, current)) values = list(itertools.chain.from_iterable(zip(temp, current)))
time = datetime.fromtimestamp(timestamp).isoformat(' ', 'milliseconds') time = datetime.fromtimestamp(timestamp).isoformat(' ', 'milliseconds')
print(frmt.format(timestamp, time, *values), end='\033[0K\r') print(frmt.format(timestamp, time, *values), end='\033[0K\r')
data.write(timestamp, *values) data.write(timestamp, *values)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment