Compare commits

...

2 Commits

Author SHA1 Message Date
Cal Wing
e57d04525e Use seconds now 2024-10-15 21:25:37 +10:00
Cal Wing
fe960d1dea Chris fix error handle 2024-10-15 21:22:40 +10:00
2 changed files with 14 additions and 12 deletions

View File

@ -476,7 +476,7 @@ def canny_shock_finder(time_list, pressure_list, sigma = 4, derivative_threshold
mplt.show()
except Exception as e:
print ("{0}: {1}".format(type(e).__name__, e.message))
print (e)
print ("There was an issue plotting the result.")
mplt.close('all')

View File

@ -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]])