SyntaxFix
Write A Post
Hire A Developer
Questions
np.convolve needs a flattened array as one of it's inputs, you can use numpy.ndarray.flatten() which is quite fast, find it here.
np.convolve
numpy.ndarray.flatten()