[bugfix] make sure t and rms have same length by using np.linspace instead of np.arange
This commit is contained in:
parent
7bf3bb6835
commit
9583f9d351
@ -793,8 +793,7 @@ def checksignallength(X, pick, TSNR, minsiglength, nfac, minpercent, iplot=0, fi
|
||||
ilen = len(x1)
|
||||
rms = abs(x1)
|
||||
|
||||
t = np.arange(0, ilen / X[0].stats.sampling_rate,
|
||||
X[0].stats.delta)
|
||||
t = np.linspace(0, X[0].stats.delta * ilen, ilen)
|
||||
|
||||
# get noise window in front of pick plus saftey gap
|
||||
inoise = getnoisewin(t, pick, TSNR[0], TSNR[1])
|
||||
|
Loading…
Reference in New Issue
Block a user