Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SeisNoise demo broken: compute_fft() bounds error #26

Closed
dylanmikesell opened this issue Feb 29, 2020 · 1 comment
Closed

SeisNoise demo broken: compute_fft() bounds error #26

dylanmikesell opened this issue Feb 29, 2020 · 1 comment

Comments

@dylanmikesell
Copy link

I updated after issue #11 was fixed. Now the demo in the SeisNoise front page is not working. (It was also not working when I tried adding SeisNoise#master as suggested to get the fix prior to the Julia registry update. Below is the error. SeisNoise compiles now, which it should after the issue #11 fix, but there is a new problem. Now there is a bounds error in compute_fft(). Any ideas? This is line 8 in the demo on the front page of this repository.

julia> FFT1 = compute_fft(S1,freqmin, freqmax, fs, cc_step, cc_len,
time_norm=false,to_whiten=false)
ERROR: BoundsError: attempt to access (Float32[8.9519034e-8 8.951522e-7 … -9.883005e-8 -1.2194332e-6; 1.3060095e-7 7.1878003e-7 … -1.3441387e-7 -9.5242154e-7; … ; -1.1920544e-7 6.684296e-7 … -5.1719906e-7 -4.7945866e-12; -1.9726252e-7 6.3828196e-7 … -5.381539e-7 4.4324054e-12], [1.13875245e9, 1.1387529e9, 1.13875335e9, 1.1387538e9, 1.13875425e9, 1.1387547e9, 1.13875515e9, 1.1387556e9, 1.13875605e9, 1.1387565e9 … 1.13883255e9, 1.138833e9, 1.13883345e9, 1.1388339e9, 1.13883435e9, 1.1388348e9, 1.13883525e9, 1.1388357e9, 1.13883615e9, 1.1388366e9])
at index [3]
Stacktrace:
[1] indexed_iterate at ./tuple.jl:63 [inlined]
[2] #compute_fft#141(::Bool, ::Bool, ::Float64, ::Bool, ::typeof(compute_fft), ::SeisData, ::Float64, ::Float64, ::Float64, ::Int64, ::Int64) at /Users/dmikesell/.julia/packages/SeisNoise/C5IgW/src/compute_fft.jl:260
[3] (::SeisNoise.var"#kw##compute_fft")(::NamedTuple{(:time_norm, :to_whiten),Tuple{Bool,Bool}}, ::typeof(compute_fft), ::SeisData, ::Float64, ::Float64, ::Float64, ::Int64, ::Int64) at ./none:0
[4] top-level scope at none:0

@dylanmikesell
Copy link
Author

Nevermind. I had not updated the demo from before. Sorry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant