Skip to content
Snippets Groups Projects
Verified Commit 2ac53c3f authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Fix `time` attribute name

parent 5bb42918
No related branches found
No related tags found
No related merge requests found
Pipeline #23673 failed
...@@ -112,7 +112,7 @@ function split_timestep(gp::GenericPulse, precision) ...@@ -112,7 +112,7 @@ function split_timestep(gp::GenericPulse, precision)
function second_derivative(arr) function second_derivative(arr)
max_second_der = 0. max_second_der = 0.
for index in 2:length(arr)-1 for index in 2:length(arr)-1
poly = fit(gp.times[index-1:index+1], arr[index-1:index+1]) poly = fit(gp.time[index-1:index+1], arr[index-1:index+1])
second_der = abs(poly.coeffs[end]) second_der = abs(poly.coeffs[end])
if second_der > max_second_der if second_der > max_second_der
max_second_der = second_der max_second_der = second_der
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment