Have you got any idea how to implement discrete dirac delta in array? My sugesstion:
a = signal.unit_impulse(50) int0 = len(a) x = np.array(a)