UCD4IDS / ContinuousWavelets.jl

wide array of continuous wavelet transforms using Julia
https://dsweber2.github.io/ContinuousWavelets.jl/dev/
Other
22 stars 7 forks source link

Documenter error for test under Julia v1.9.0 #36

Closed BoundaryValueProblems closed 1 year ago

BoundaryValueProblems commented 1 year ago

I upgraded Julia from v1.8.5 to v1.9 yesterday. And I just ran test of ContinuousWavelets.jl and got the error related to Documenter as follows. If you could check what needs to be changed and fix this, I highly appreciate it.

Precompiling project...
  3 dependencies successfully precompiled in 4 seconds. 45 already precompiled.
     Testing Running tests...
┌ Warning: Unable to determine HTML(edit_link = ...) from remote HEAD branch, defaulting to "master".
│ Calling `git remote` failed with an exception. Set JULIA_DEBUG=Documenter to see the error.
│ Unless this is due to a configuration error, the relevant variable should be set explicitly.
└ @ Documenter.Utilities ~/.julia/packages/Documenter/H5y27/src/Utilities/Utilities.jl:822
[ Info: SetupBuildDirectory: setting up build directory.
[ Info: Doctest: running doctests.
CWT{Morlet mean 3.141592653589793, Father Wavelet, Q=8.0, β=2.0,aveLen=0.0, frame=1.0, norm=Inf, extraOctaves=0.0}┌ Error: doctest failure in ~/.julia/packages/ContinuousWavelets/arobh/docs/src/README.md:30-56
│ 
│ ```jldoctest ex
│ julia> using Random
│ 
│ julia> Random.seed!(1234);
│ 
│ julia> using ContinuousWavelets, Wavelets
│ 
│ julia> n = 2047;
│ 
│ julia> t = range(0, n / 1000, length=n); # 1kHz sampling rate
│ 
│ julia> f = testfunction(n, "Doppler");
│ 
│ julia> c = wavelet(Morlet(π), β=2)
│ 
│ julia> res = ContinuousWavelets.cwt(f, c)
│ ┌ Warning: the lowest frequency wavelet has more than 1% its max at zero, so it may not be analytic. Think carefully
│ │   lowAprxAnalyt = 0.061863
│ └ @ ContinuousWavelets ~/work/ContinuousWavelets.jl/ContinuousWavelets.jl/src/sanityChecks.jl:6
│ 2047×31 Matrix{ComplexF64}:
│  -1.48637e-6+3.8241e-19im   …  0.000109978+9.67834e-5im
│  -1.48602e-6+5.15534e-19im     -8.24922e-5+0.000130656im
│             ⋮               ⋱             ⋮
│  0.000435175+2.30636e-19im  …  -2.47195e-6-1.97048e-8im
│  0.000435027-8.28725e-19im     -2.63499e-6+4.62331e-8im
│ 
│ 
│ ```
│ 
│ Subexpression:
│ 
│ res = ContinuousWavelets.cwt(f, c)
│ 
│ Evaluated output:
│ 
│ ┌ Warning: the lowest frequency wavelet has more than 1% its max at zero, so it may not be analytic. Think carefully
│ │   lowAprxAnalyt = 0.061863
│ └ @ ContinuousWavelets ~/.julia/packages/ContinuousWavelets/arobh/src/sanityChecks.jl:7
│ 2047×31 Matrix{ComplexF64}:
│  -1.48637e-6+4.06351e-19im  …  0.000109978+9.67834e-5im
│  -1.48602e-6+8.29936e-19im     -8.24922e-5+0.000130656im
│             ⋮               ⋱             ⋮
│  0.000435175+2.74268e-19im  …  -2.47195e-6-1.97048e-8im
│  0.000435027-7.22511e-19im     -2.63499e-6+4.62331e-8im
│ 
│ Expected output:
│ 
│ ┌ Warning: the lowest frequency wavelet has more than 1% its max at zero, so it may not be analytic. Think carefully
│ │   lowAprxAnalyt = 0.061863
│ └ @ ContinuousWavelets ~/work/ContinuousWavelets.jl/ContinuousWavelets.jl/src/sanityChecks.jl:6
│ 2047×31 Matrix{ComplexF64}:
│  -1.48637e-6+3.8241e-19im   …  0.000109978+9.67834e-5im
│  -1.48602e-6+5.15534e-19im     -8.24922e-5+0.000130656im
│             ⋮               ⋱             ⋮
│  0.000435175+2.30636e-19im  …  -2.47195e-6-1.97048e-8im
│  0.000435027-8.28725e-19im     -2.63499e-6+4.62331e-8im
│ 
│   diff =
│    ┌ Warning: the lowest frequency wavelet has more than 1% its max at zero, so it may not be analytic. Think carefully
│    │   lowAprxAnalyt = 0.061863
│    └ @ ContinuousWavelets ~/work/ContinuousWavelets.jl/ContinuousWavelets.jl/src/sanityChecks.jl:6
│    ~/.julia/packages/ContinuousWavelets/arobh/src/sanityChecks.jl:7
│    2047×31 Matrix{ComplexF64}:
│     -1.48637e-6+3.8241e-19im   -1.48637e-6+4.06351e-19im  …  0.000109978+9.67834e-5im
│     -1.48602e-6+5.15534e-19im     -1.48602e-6+8.29936e-19im     -8.24922e-5+0.000130656im
│                ⋮               ⋱             ⋮
│     0.000435175+2.30636e-19im  0.000435175+2.74268e-19im  …  -2.47195e-6-1.97048e-8im
│     0.000435027-8.28725e-19im     0.000435027-7.22511e-19im     -2.63499e-6+4.62331e-8im
└ @ Documenter.DocTests ~/.julia/packages/ContinuousWavelets/arobh/docs/src/README.md:30
┌ Error: doctest failure in ~/.julia/packages/ContinuousWavelets/arobh/docs/src/README.md:77-100
│ 
│ ```jldoctest ex
│ using ContinuousWavelets, Wavelets
│ f = testfunction(n, "Bumps");
│ c = wavelet(dog2, β = 2)
│ res = ContinuousWavelets.cwt(f, c)
│ # dropping the middle peaks
│ res[620:1100, :] .= 0
│ # and smoothing the remaining peaks
│ res[:, 10:end] .= 0
│ freqs = ContinuousWavelets.getMeanFreq(length(f), c)
│ dropped = ContinuousWavelets.icwt(res, c, DualFrames())
│ round.(dropped,sigdigits=12)
│ 
│ # output
│ 
│ ┌ Warning: the canonical dual frame is off by 3.81e6, consider using one of the delta dual frames
│ └ @ ContinuousWavelets ~/work/ContinuousWavelets.jl/ContinuousWavelets.jl/src/sanityChecks.jl:41
│ 2047-element Vector{Float64}:
│  0.0069417253841
│  0.00694223965946
│  ⋮
│  0.00268854944484
│  0.00268852311536
│ ```
│ 
│ Subexpression:
│ 
│ using ContinuousWavelets, Wavelets
│ f = testfunction(n, "Bumps");
│ c = wavelet(dog2, β = 2)
│ res = ContinuousWavelets.cwt(f, c)
│ # dropping the middle peaks
│ res[620:1100, :] .= 0
│ # and smoothing the remaining peaks
│ res[:, 10:end] .= 0
│ freqs = ContinuousWavelets.getMeanFreq(length(f), c)
│ dropped = ContinuousWavelets.icwt(res, c, DualFrames())
│ round.(dropped,sigdigits=12)
│ 
│ Evaluated output:
│ 
│ ┌ Warning: the canonical dual frame is off by 3.81e6, consider using one of the delta dual frames
│ └ @ ContinuousWavelets ~/.julia/packages/ContinuousWavelets/arobh/src/sanityChecks.jl:41
│ 2047-element Vector{Float64}:
│  0.0069417253841
│  0.00694223965946
│  ⋮
│  0.00268854944484
│  0.00268852311535
│ 
│ Expected output:
│ 
│ ┌ Warning: the canonical dual frame is off by 3.81e6, consider using one of the delta dual frames
│ └ @ ContinuousWavelets ~/work/ContinuousWavelets.jl/ContinuousWavelets.jl/src/sanityChecks.jl:41
│ 2047-element Vector{Float64}:
│  0.0069417253841
│  0.00694223965946
│  ⋮
│  0.00268854944484
│  0.00268852311536
│ 
│   diff =
│    ┌ Warning: the canonical dual frame is off by 3.81e6, consider using one of the delta dual frames
│    └ @ ContinuousWavelets ~/work/ContinuousWavelets.jl/ContinuousWavelets.jl/src/sanityChecks.jl:41
│    ~/.julia/packages/ContinuousWavelets/arobh/src/sanityChecks.jl:41
│    2047-element Vector{Float64}:
│     0.0069417253841
│     0.00694223965946
│     ⋮
│     0.00268854944484
│     0.002688523115360.00268852311535
└ @ Documenter.DocTests ~/.julia/packages/ContinuousWavelets/arobh/docs/src/README.md:77
CWT{Continuous db2, Father Wavelet, Q=8.0, β=2.0,aveLen=0.0, frame=1.0, norm=Inf, extraOctaves=0.0}┌ Error: doctest failure in ~/.julia/packages/ContinuousWavelets/arobh/docs/src/README.md:104-143
│ 
│ ```jldoctest ex
│ julia> using Wavelets
│ 
│ julia> exs = cat(testfunction(n, "Doppler"), testfunction(n, "Blocks"), testfunction(n, "Bumps"), testfunction(n, "HeaviSine"), dims=2);
│ 
│ julia> c = wavelet(cDb2, β=2, extraOctaves=-0)
│ 
│ julia> res = circshift(ContinuousWavelets.cwt(exs, c), (0, 1, 0))
│ ┌ Warning: the highest frequency wavelet has more than 1% its max at the end, so it may not be analytic. Think carefully
│ │   highAprxAnalyt = 0.26778
│ └ @ ContinuousWavelets ~/work/ContinuousWavelets.jl/ContinuousWavelets.jl/src/sanityChecks.jl:12
│ 2047×32×4 Array{Float64, 3}:
│ [:, :, 1] =
│  1.89367e-5  0.000266033  …  4.6727e-5    2.99983e-6
│  8.33321e-5  0.000266913     1.56557e-5  -4.46419e-5
│  ⋮                        ⋱  ⋮
│  2.24677e-6  0.00198709   …  4.24042e-6   3.80685e-6
│  2.63848e-6  0.00198004      4.3791e-6    3.47575e-6
│ 
│ [:, :, 2] =
│   7.81007e-18  0.0226754  0.00955729  …   3.68809e-18
│  -3.47114e-18  0.022684   0.00950443     -3.47114e-18
│   ⋮                                   ⋱
│  -9.29595e-18  0.0341512  0.0108039   …  -3.84208e-19
│   1.27592e-18  0.0342157  0.0107729      -1.7043e-18
│ 
│ [:, :, 3] =
│  -4.2736e-7   0.0059687   …  4.47839e-8  1.86209e-8
│  -4.39691e-7  0.00596762     3.30771e-8  7.78201e-9
│   ⋮                       ⋱  ⋮
│  -9.41123e-8  0.00339924  …  8.01012e-9  4.78652e-9
│  -9.36079e-8  0.0034061      8.3188e-9   4.24252e-9
│ 
│ [:, :, 4] =
│   0.000307454  -0.0150898   -0.00391724  …   0.000301757
│   6.05948e-5   -0.0152536   -0.00405883      8.45503e-5
│   ⋮                                      ⋱
│  -0.000307094  -0.00755439  -0.00156729  …  -0.000594673
│  -0.000378125  -0.00746687  -0.00146262     -0.00051676
│ ```
│ 
│ Subexpression:
│ 
│ res = circshift(ContinuousWavelets.cwt(exs, c), (0, 1, 0))
│ 
│ Evaluated output:
│ 
│ ┌ Warning: the highest frequency wavelet has more than 1% its max at the end, so it may not be analytic. Think carefully
│ │   highAprxAnalyt = 0.26778
│ └ @ ContinuousWavelets ~/.julia/packages/ContinuousWavelets/arobh/src/sanityChecks.jl:12
│ 2047×32×4 Array{Float64, 3}:
│ [:, :, 1] =
│  1.89367e-5  0.000266033  …  4.6727e-5    2.99983e-6
│  8.33321e-5  0.000266913     1.56557e-5  -4.46419e-5
│  ⋮                        ⋱  ⋮
│  2.24677e-6  0.00198709   …  4.24042e-6   3.80685e-6
│  2.63848e-6  0.00198004      4.3791e-6    3.47575e-6
│ 
│ [:, :, 2] =
│  5.20671e-18  0.0226754  …  1.73557e-18   1.51862e-18
│  6.94228e-18  0.022684      1.73557e-18   3.47114e-18
│  ⋮                       ⋱  ⋮
│  5.52775e-18  0.0341512  …  4.66141e-18  -1.81278e-18
│  5.202e-18    0.0342157     6.79498e-18  -2.35239e-18
│ 
│ [:, :, 3] =
│  -4.2736e-7   0.0059687   …  4.47839e-8  1.86209e-8
│  -4.39691e-7  0.00596762     3.30771e-8  7.78201e-9
│   ⋮                       ⋱  ⋮
│  -9.41123e-8  0.00339924  …  8.01012e-9  4.78652e-9
│  -9.36079e-8  0.0034061      8.3188e-9   4.24252e-9
│ 
│ [:, :, 4] =
│   0.000307454  -0.0150898   -0.00391724  …   0.000301757
│   6.05948e-5   -0.0152536   -0.00405883      8.45503e-5
│   ⋮                                      ⋱
│  -0.000307094  -0.00755439  -0.00156729  …  -0.000594673
│  -0.000378125  -0.00746687  -0.00146262     -0.00051676
│ 
│ Expected output:
│ 
│ ┌ Warning: the highest frequency wavelet has more than 1% its max at the end, so it may not be analytic. Think carefully
│ │   highAprxAnalyt = 0.26778
│ └ @ ContinuousWavelets ~/work/ContinuousWavelets.jl/ContinuousWavelets.jl/src/sanityChecks.jl:12
│ 2047×32×4 Array{Float64, 3}:
│ [:, :, 1] =
│  1.89367e-5  0.000266033  …  4.6727e-5    2.99983e-6
│  8.33321e-5  0.000266913     1.56557e-5  -4.46419e-5
│  ⋮                        ⋱  ⋮
│  2.24677e-6  0.00198709   …  4.24042e-6   3.80685e-6
│  2.63848e-6  0.00198004      4.3791e-6    3.47575e-6
│ 
│ [:, :, 2] =
│   7.81007e-18  0.0226754  0.00955729  …   3.68809e-18
│  -3.47114e-18  0.022684   0.00950443     -3.47114e-18
│   ⋮                                   ⋱
│  -9.29595e-18  0.0341512  0.0108039   …  -3.84208e-19
│   1.27592e-18  0.0342157  0.0107729      -1.7043e-18
│ 
│ [:, :, 3] =
│  -4.2736e-7   0.0059687   …  4.47839e-8  1.86209e-8
│  -4.39691e-7  0.00596762     3.30771e-8  7.78201e-9
│   ⋮                       ⋱  ⋮
│  -9.41123e-8  0.00339924  …  8.01012e-9  4.78652e-9
│  -9.36079e-8  0.0034061      8.3188e-9   4.24252e-9
│ 
│ [:, :, 4] =
│   0.000307454  -0.0150898   -0.00391724  …   0.000301757
│   6.05948e-5   -0.0152536   -0.00405883      8.45503e-5
│   ⋮                                      ⋱
│  -0.000307094  -0.00755439  -0.00156729  …  -0.000594673
│  -0.000378125  -0.00746687  -0.00146262     -0.00051676
│ 
│   diff =
│    ┌ Warning: the highest frequency wavelet has more than 1% its max at the end, so it may not be analytic. Think carefully
│    │   highAprxAnalyt = 0.26778
│    └ @ ContinuousWavelets ~/work/ContinuousWavelets.jl/ContinuousWavelets.jl/src/sanityChecks.jl:12
│    ~/.julia/packages/ContinuousWavelets/arobh/src/sanityChecks.jl:12
│    2047×32×4 Array{Float64, 3}:
│    [:, :, 1] =
│     1.89367e-5  0.000266033  …  4.6727e-5    2.99983e-6
│     8.33321e-5  0.000266913     1.56557e-5  -4.46419e-5
│     ⋮                        ⋱  ⋮
│     2.24677e-6  0.00198709   …  4.24042e-6   3.80685e-6
│     2.63848e-6  0.00198004      4.3791e-6    3.47575e-6
│    
│    [:, :, 2] =
│      7.81007e-18  =
│     5.20671e-18  0.0226754  0.00955729  …   3.68809e-18
│     -3.47114e-18  0.022684   0.00950443     -3.47114e-18
│      ⋮                                   ⋱
│     -9.29595e-18  …  1.73557e-18   1.51862e-18
│     6.94228e-18  0.022684      1.73557e-18   3.47114e-18
│     ⋮                       ⋱  ⋮
│     5.52775e-18  0.0341512  0.0108039   …  -3.84208e-19
│      1.27592e-18  0.0342157  0.0107729      -1.7043e-18
│    
│    4.66141e-18  -1.81278e-18
│     5.202e-18    0.0342157     6.79498e-18  -2.35239e-18
│    
│    [:, :, 3] =
│     -4.2736e-7   0.0059687   …  4.47839e-8  1.86209e-8
│     -4.39691e-7  0.00596762     3.30771e-8  7.78201e-9
│      ⋮                       ⋱  ⋮
│     -9.41123e-8  0.00339924  …  8.01012e-9  4.78652e-9
│     -9.36079e-8  0.0034061      8.3188e-9   4.24252e-9
│    
│    [:, :, 4] =
│      0.000307454  -0.0150898   -0.00391724  …   0.000301757
│      6.05948e-5   -0.0152536   -0.00405883      8.45503e-5
│      ⋮                                      ⋱
│     -0.000307094  -0.00755439  -0.00156729  …  -0.000594673
│     -0.000378125  -0.00746687  -0.00146262     -0.00051676
└ @ Documenter.DocTests ~/.julia/packages/ContinuousWavelets/arobh/docs/src/README.md:104
CWT{Morlet mean 6.283185307179586, Father Wavelet, Q=8.0, β=2.0,aveLen=0.0, frame=1.0, norm=Inf, extraOctaves=0.0}┌ Error: doctest failure in ~/.julia/packages/ContinuousWavelets/arobh/src/utils.jl:453-480
│ 
│ ```jldoctest
│ julia> using ContinuousWavelets, Random
│ 
│ julia> rng = MersenneTwister(23425); Y = randn(rng, 2053, 4);
│ 
│ julia> X = Y .+ 3;
│ 
│ julia> c = wavelet(morl, β = 2)
│ 
│ julia> Xspec = crossSpectrum(X, Y, c); size(Xspec)
│ (2053, 29, 4, 4)
│ 
│ julia> Xspec[:,:,1,1]
│ 2053×29 Matrix{ComplexF64}:
│  -4.14517e-5+2.19692e-20im  …  1.19877e-5-7.07215e-15im
│  -4.14157e-5+2.23209e-21im     1.19896e-5-7.06562e-15im
│             ⋮               ⋱
│  0.000119144+4.38332e-21im     1.70054e-5+1.85809e-15im
│  0.000119178+1.3884e-20im      1.69993e-5+1.8598e-15im
│ 
│ julia> Xspec[:,:,1,2]
│ 2053×29 Matrix{ComplexF64}:
│   5.42995e-5-1.94343e-20im  …    2.649e-6-1.22869e-6im
│    5.4303e-5-1.52994e-20im      2.6479e-6-1.23329e-6im
│             ⋮               ⋱
│  -3.17457e-5-1.12611e-20im     4.71683e-6+3.72814e-6im
│  -3.17719e-5+1.44436e-20im     4.71417e-6+3.7279e-6im
│ 
│ ```
│ 
│ Subexpression:
│ 
│ Xspec[:,:,1,1]
│ 
│ Evaluated output:
│ 
│ 2053×29 Matrix{ComplexF64}:
│  -4.14517e-5-1.18296e-20im  …  1.19877e-5-7.07216e-15im
│  -4.14157e-5-2.46485e-20im     1.19896e-5-7.06563e-15im
│             ⋮               ⋱
│  0.000119144+1.27274e-20im     1.70054e-5+1.85809e-15im
│  0.000119178+7.09791e-21im     1.69993e-5+1.85979e-15im
│ 
│ Expected output:
│ 
│ 2053×29 Matrix{ComplexF64}:
│  -4.14517e-5+2.19692e-20im  …  1.19877e-5-7.07215e-15im
│  -4.14157e-5+2.23209e-21im     1.19896e-5-7.06562e-15im
│             ⋮               ⋱
│  0.000119144+4.38332e-21im     1.70054e-5+1.85809e-15im
│  0.000119178+1.3884e-20im      1.69993e-5+1.8598e-15im
│ 
│   diff =
│    2053×29 Matrix{ComplexF64}:
│     -4.14517e-5+2.19692e-20im  -4.14517e-5-1.18296e-20im  …  1.19877e-5-7.07215e-15im
│     -4.14157e-5+2.23209e-21im     1.19896e-5-7.06562e-15im
│                1.19877e-5-7.07216e-15im
│     -4.14157e-5-2.46485e-20im     1.19896e-5-7.06563e-15im
│                ⋮               ⋱
│     0.000119144+4.38332e-21im     0.000119144+1.27274e-20im     1.70054e-5+1.85809e-15im
│     0.000119178+1.3884e-20im      1.69993e-5+1.8598e-15im0.000119178+7.09791e-21im     1.69993e-5+1.85979e-15im
└ @ Documenter.DocTests ~/.julia/packages/ContinuousWavelets/arobh/src/utils.jl:453
┌ Error: doctest failure in ~/.julia/packages/ContinuousWavelets/arobh/src/utils.jl:453-480
│ 
│ ```jldoctest
│ julia> using ContinuousWavelets, Random
│ 
│ julia> rng = MersenneTwister(23425); Y = randn(rng, 2053, 4);
│ 
│ julia> X = Y .+ 3;
│ 
│ julia> c = wavelet(morl, β = 2)
│ 
│ julia> Xspec = crossSpectrum(X, Y, c); size(Xspec)
│ (2053, 29, 4, 4)
│ 
│ julia> Xspec[:,:,1,1]
│ 2053×29 Matrix{ComplexF64}:
│  -4.14517e-5+2.19692e-20im  …  1.19877e-5-7.07215e-15im
│  -4.14157e-5+2.23209e-21im     1.19896e-5-7.06562e-15im
│             ⋮               ⋱
│  0.000119144+4.38332e-21im     1.70054e-5+1.85809e-15im
│  0.000119178+1.3884e-20im      1.69993e-5+1.8598e-15im
│ 
│ julia> Xspec[:,:,1,2]
│ 2053×29 Matrix{ComplexF64}:
│   5.42995e-5-1.94343e-20im  …    2.649e-6-1.22869e-6im
│    5.4303e-5-1.52994e-20im      2.6479e-6-1.23329e-6im
│             ⋮               ⋱
│  -3.17457e-5-1.12611e-20im     4.71683e-6+3.72814e-6im
│  -3.17719e-5+1.44436e-20im     4.71417e-6+3.7279e-6im
│ 
│ ```
│ 
│ Subexpression:
│ 
│ Xspec[:,:,1,2]
│ 
│ Evaluated output:
│ 
│ 2053×29 Matrix{ComplexF64}:
│   5.42995e-5-1.09846e-20im  …    2.649e-6-1.22869e-6im
│    5.4303e-5+3.60853e-20im      2.6479e-6-1.23329e-6im
│             ⋮               ⋱
│  -3.17457e-5-1.1214e-21im      4.71683e-6+3.72814e-6im
│  -3.17719e-5-2.02166e-20im     4.71417e-6+3.7279e-6im
│ 
│ Expected output:
│ 
│ 2053×29 Matrix{ComplexF64}:
│   5.42995e-5-1.94343e-20im  …    2.649e-6-1.22869e-6im
│    5.4303e-5-1.52994e-20im      2.6479e-6-1.23329e-6im
│             ⋮               ⋱
│  -3.17457e-5-1.12611e-20im     4.71683e-6+3.72814e-6im
│  -3.17719e-5+1.44436e-20im     4.71417e-6+3.7279e-6im
│ 
│   diff =
│    2053×29 Matrix{ComplexF64}:
│      5.42995e-5-1.94343e-20im  5.42995e-5-1.09846e-20im  …    2.649e-6-1.22869e-6im
│       5.4303e-5-1.52994e-20im      5.4303e-5+3.60853e-20im      2.6479e-6-1.23329e-6im
│                ⋮               ⋱
│     -3.17457e-5-1.12611e-20im     -3.17457e-5-1.1214e-21im      4.71683e-6+3.72814e-6im
│     -3.17719e-5+1.44436e-20im     -3.17719e-5-2.02166e-20im     4.71417e-6+3.7279e-6im
└ @ Documenter.DocTests ~/.julia/packages/ContinuousWavelets/arobh/src/utils.jl:453
CWT{Morlet mean 6.283185307179586, Father Wavelet, Q=8.0, β=2.0,aveLen=0.0, frame=1.0, norm=Inf, extraOctaves=0.0}┌ Error: Doctesting failed
│   exception =
│    `makedocs` encountered a doctest error. Terminating build
│    Stacktrace:
│      [1] error(s::String)
│        @ Base ./error.jl:35
│      [2] runner(#unused#::Type{Documenter.Builder.Doctest}, doc::Documenter.Documents.Document)
│        @ Documenter.Builder ~/.julia/packages/Documenter/H5y27/src/Builder.jl:216
│      [3] dispatch(#unused#::Type{Documenter.Builder.DocumentPipeline}, x::Documenter.Documents.Document)
│        @ Documenter.Utilities.Selectors ~/.julia/packages/Documenter/H5y27/src/Utilities/Selectors.jl:170
│      [4] #2
│        @ ~/.julia/packages/Documenter/H5y27/src/Documenter.jl:273 [inlined]
│      [5] cd(f::Documenter.var"#2#3"{Documenter.Documents.Document}, dir::String)
│        @ Base.Filesystem ./file.jl:112
│      [6] makedocs(; debug::Bool, format::Documenter.Writers.HTMLWriter.HTML, kwargs::Base.Pairs{Symbol, Any, NTuple{6, Symbol}, NamedTuple{(:root, :source, :sitename, :doctest, :modules, :doctestfilters), Tuple{String, String, String, Symbol, Vector{Module}, Vector{Regex}}}})
│        @ Documenter ~/.julia/packages/Documenter/H5y27/src/Documenter.jl:272
│      [7] (::Documenter.var"#all_doctests#32"{Bool, Vector{Regex}, Vector{Module}})()
│        @ Documenter ~/.julia/packages/Documenter/H5y27/src/Documenter.jl:942
│      [8] macro expansion
│        @ /Applications/Julia-1.9.app/Contents/Resources/julia/share/julia/stdlib/v1.9/Test/src/Test.jl:478 [inlined]
│      [9] macro expansion
│        @ ~/.julia/packages/Documenter/H5y27/src/Documenter.jl:963 [inlined]
│     [10] macro expansion
│        @ /Applications/Julia-1.9.app/Contents/Resources/julia/share/julia/stdlib/v1.9/Test/src/Test.jl:1498 [inlined]
│     [11] doctest(source::String, modules::Vector{Module}; fix::Bool, testset::String, doctestfilters::Vector{Regex})
│        @ Documenter ~/.julia/packages/Documenter/H5y27/src/Documenter.jl:963
│     [12] doctest
│        @ ~/.julia/packages/Documenter/H5y27/src/Documenter.jl:927 [inlined]
│     [13] doctest(package::Module; manual::Bool, testset::Nothing, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
│        @ Documenter ~/.julia/packages/Documenter/H5y27/src/Documenter.jl:898
│     [14] doctest(package::Module)
│        @ Documenter ~/.julia/packages/Documenter/H5y27/src/Documenter.jl:884
│     [15] macro expansion
│        @ ~/.julia/packages/ContinuousWavelets/arobh/test/runtests.jl:8 [inlined]
│     [16] macro expansion
│        @ /Applications/Julia-1.9.app/Contents/Resources/julia/share/julia/stdlib/v1.9/Test/src/Test.jl:1498 [inlined]
│     [17] top-level scope
│        @ ~/.julia/packages/ContinuousWavelets/arobh/test/runtests.jl:8
│     [18] include(fname::String)
│        @ Base.MainInclude ./client.jl:478
│     [19] top-level scope
│        @ none:6
│     [20] eval
│        @ ./boot.jl:370 [inlined]
│     [21] exec_options(opts::Base.JLOptions)
│        @ Base ./client.jl:280
│     [22] _start()
│        @ Base ./client.jl:522
└ @ Documenter ~/.julia/packages/Documenter/H5y27/src/Documenter.jl:952
Doctests: ContinuousWavelets: Test Failed at ~/.julia/packages/Documenter/H5y27/src/Documenter.jl:963
  Expression: all_doctests()

Stacktrace:
 [1] macro expansion
   @ /Applications/Julia-1.9.app/Contents/Resources/julia/share/julia/stdlib/v1.9/Test/src/Test.jl:478 [inlined]
 [2] macro expansion
   @ ~/.julia/packages/Documenter/H5y27/src/Documenter.jl:963 [inlined]
 [3] macro expansion
   @ /Applications/Julia-1.9.app/Contents/Resources/julia/share/julia/stdlib/v1.9/Test/src/Test.jl:1498 [inlined]
 [4] doctest(source::String, modules::Vector{Module}; fix::Bool, testset::String, doctestfilters::Vector{Regex})
   @ Documenter ~/.julia/packages/Documenter/H5y27/src/Documenter.jl:963
┌ Warning: the lowest frequency wavelet has more than 1% its max at zero, so it may not be analytic. Think carefully
│   lowAprxAnalyt = 0.038173
└ @ ContinuousWavelets ~/.julia/packages/ContinuousWavelets/arobh/src/sanityChecks.jl:7
┌ Warning: there are wavelets whose peaks are far enough apart that the trough between them is less than half the height of the highest frequency wavelet
│   minimalRegionComparedToLastPeak = 6.4278
└ @ ContinuousWavelets ~/.julia/packages/ContinuousWavelets/arobh/src/sanityChecks.jl:32
┌ Warning: the lowest frequency wavelet has more than 1% its max at zero, so it may not be analytic. Think carefully
│   lowAprxAnalyt = 0.038173
└ @ ContinuousWavelets ~/.julia/packages/ContinuousWavelets/arobh/src/sanityChecks.jl:7
┌ Warning: there are wavelets whose peaks are far enough apart that the trough between them is less than half the height of the highest frequency wavelet
│   minimalRegionComparedToLastPeak = 6.4278
└ @ ContinuousWavelets ~/.julia/packages/ContinuousWavelets/arobh/src/sanityChecks.jl:32
Test Summary:                  | Pass  Fail  Total     Time
ContinuousWavelets.jl          | 5005     1   5006  1m06.5s
  Doctests: ContinuousWavelets |          1      1    24.4s
  Construction Types           | 2700         2700    19.3s
  Delta Spikes                 |   12           12     0.4s
  Coherence and Cross spectrum |    3            3     1.5s
  Wavelet properties           | 2266         2266    10.5s
  Inversion                    |   24           24     9.2s
ERROR: LoadError: Some tests did not pass: 5005 passed, 1 failed, 0 errored, 0 broken.
in expression starting at ~/.julia/packages/ContinuousWavelets/arobh/test/runtests.jl:7
ERROR: Package ContinuousWavelets errored during testing
dsweber2 commented 1 year ago

Thanks for the check. I really need to figure out a better way of testing these, the current method is too sensitive to the ~0 imaginary part. The error is only in the construction of the tests, though.

dsweber2 commented 1 year ago

Just to let you know, I've been looking at this, and it turns out comparing floating points that have been pretty printed is actually a pretty thorny problem. Probably best to let this error slide by on either of our local copies or the mac until there's actual floating point comparisons done in doctests Documenter.jl (if you're interested in more detail, see the mention from last week).

I've rewritten the tests so that the doctests only happen in the CI, so we'll only see meaningful local errors.