Skip to content

Commit

Permalink
Fix table waveform sampling
Browse files Browse the repository at this point in the history
  • Loading branch information
terrorfisch committed Aug 6, 2020
1 parent 326e05f commit d783f31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion qupulse/_program/waveforms.py
Expand Up @@ -222,7 +222,9 @@ def unsafe_sample(self,
indices = slice(np.searchsorted(sample_times, entry1.t, 'left'),
np.searchsorted(sample_times, entry2.t, 'right'))
output_array[indices] = \
entry2.interp((entry1.t, entry1.v), (entry2.t, entry2.v), sample_times[indices])
entry2.interp((float(entry1.t), entry1.v),
(float(entry2.t), entry2.v),
sample_times[indices])
return output_array

@property
Expand Down

0 comments on commit d783f31

Please sign in to comment.