Closed brosand closed 2 years ago
A PR I'm working on will fix this issue. May have been good to do it as a separate small fix but just needed it to proceed with what I was doing. I've added an additional test caset o check for this, and have also added more complicated tests in test_pulse_to_signals
which rely on this functionality.
the
add_sample
function needs to be fixed, and tests need to be added to confirm that the padding works.The code:
Expected behavior:
discrete.envelope(t_vals) = array([0.0, 4. +0.j, 3.2+0.j, 0. +0.j])
Actual behavior:
discrete.envelope(t_vals) = array([4. +0.j, 3.2+0.j, 0. +0.j, 0. +0.j])