Commit 2b39500f authored by Ivan Tyagov's avatar Ivan Tyagov

Save timestamped files.

parent 6d801de5
...@@ -95,6 +95,16 @@ except statistics.StatisticsError: ...@@ -95,6 +95,16 @@ except statistics.StatisticsError:
channel1_min = min(timestamp_channel1_delta_list) channel1_min = min(timestamp_channel1_delta_list)
channel1_max = max(timestamp_channel1_delta_list) channel1_max = max(timestamp_channel1_delta_list)
# save only Durations for further analyses
channel_0_text = "\n".join([str(x) for x in timestamp_channel0_delta_list])
channel_1_text = "\n".join([str(x) for x in timestamp_channel1_delta_list])
f = open("channel0_duration.txt", "w")
f.write(channel_0_text)
f.close()
f = open("channel1_duration.txt", "w")
f.write(channel_1_text)
f.close()
stop_time = lines_list[-1].split(",")[0] stop_time = lines_list[-1].split(",")[0]
print("Timestamp records = ", len(lines_list)) print("Timestamp records = ", len(lines_list))
print("Duration (seconds) = ", stop_time) print("Duration (seconds) = ", stop_time)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment