Commit b09bab4
Benjamin Moody
SignalMixin.smooth_frames: check lengths of input arrays.
Ensure that all of the input signals have the expected lengths before
trying to do anything else.
(If any of the signal lengths were wrong, this would typically have
raised a ValueError later on - though not always, since numpy will try
to be clever if one of the arguments is an array of length 1.)1 parent 13a8948 commit b09bab4
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
841 | 841 | | |
842 | 842 | | |
843 | 843 | | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
844 | 850 | | |
845 | 851 | | |
846 | 852 | | |
| |||
0 commit comments