We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 069ae81 commit df53a77Copy full SHA for df53a77
1 file changed
autotune/data_extractor.py
@@ -117,7 +117,8 @@ def get_delta_mean(data_list):
117
return dx
118
119
def resample_interp(t, u, t_new):
120
- interp = make_interp_spline(t, u, k=1)
+ t_unique, indices = np.unique(t, return_index=True)
121
+ interp = make_interp_spline(t_unique, u[indices], k=1)
122
return interp(t_new)
123
124
def find_autotune_sequence(log, axis):
0 commit comments