You need to read the numpy zeros documentation, because your syntax does not actually match its specification: import numpy as np
Filters = [1,2,3];
Shifts = np.zeros((len(Filters)-1,1),dtype=np.int16)
Most likely you do not need a 2D numpy array, and a simple 1D array would suffice:
Shifts = np.zeros(len(Filters)-1,dtype=np.int16)
Best Answer