From e57d04525e4592ab4d4715cb1a11faf88b99fd4c Mon Sep 17 00:00:00 2001 From: Cal Wing <20716204+calw20@users.noreply.github.com> Date: Tue, 15 Oct 2024 21:25:37 +1000 Subject: [PATCH] Use seconds now --- main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 576da55..eac31bc 100644 --- a/main.py +++ b/main.py @@ -160,10 +160,12 @@ def genGraph(gData): gData = data[loaded_data[0]] x2_time, scope_time, x2_timestamps = process_data(gData) -x2_out = canny_shock_finder(x2_timestamps, (gData["x2"][4][:] - gData["x2"][4][0]) * 0.0148) +time = (gData["x2"][0][:] - gData["x2"][0][0]).astype('int') + +x2_out = canny_shock_finder(time, (gData["x2"][4][:] - gData["x2"][4][0]) * 0.0148) print(x2_out) -input("foo") +print("Done") #print("Graphing Data") #genGraph(data[loaded_data[0]])