I'm trying to tune the s and w parameter in the scipy.signal.cwt wavelet transform
fs=2048
w = 6
f = 1
s = w*fs / (2*f*np.pi)
widths = np.arange(1, 100)
cwtmatr = signal.cwt(np.random.rand(10000), signal.morlet, widths, w=w, s=s)
but I have an issue saying
TypeError: morlet() got multiple values for argument 'w'
Although w can be tuned as it is a kwargs in the morlet prototype :
scipy.signal.morlet(M, w=5.0, s=1.0, complete=True)
How can I set s and w when I call the scipy.signal.cwt function?
