Hi
I want to subtract all the behaviour that have length scale bigger than data-length/10 from each vector. Here is the function I wrote:

Code:
def hpass(vec):
	cutoff_hz = len(vec)/10.
	sample_rate=len(vec)
	nyq_rate = sample_rate / 2.
	numtaps = 10
	warmup = numtaps - 1
	fir_coeff = firwin(numtaps, cutoff_hz/nyq_rate)
	delay = (warmup) #/ sample_rate
	t=np.arange(len(vec))
...