felixcremer / EmpiricalModeDecomposition.jl

Implementation of the Empirical Mode Decomposition in Julia
Other
16 stars 2 forks source link

Documentation out of date? #13

Closed baggepinnen closed 4 years ago

baggepinnen commented 4 years ago

I'm trying to use the functions listed in the documentation, with no luck

julia> ceemd(h, t; num_imfs=3)
ERROR: UndefVarError: ceemd not defined
Stacktrace:
felixcremer commented 4 years ago

Thanks, for your comment. On which commmit are you? For me it works on the latest master, and I also don't see a commit where this should fail.

Could you please post the full stacktrace, maybe I would see what could go wrong there.

baggepinnen commented 4 years ago

I installed the package using the package manager in Julia v1.3.1 and When I typed EmpiricalModeDecomposition.<TAB>, indeed, there was no ceemd. I tried installing the master branch and then it was defined.

Here's how it looks in a fresh environment

(v1.3) pkg> activate /tmp
Activating new environment at `/tmp/Project.toml`

(tmp) pkg> add EmpiricalModeDecomposition
 Resolving package versions...
  Updating `/tmp/Project.toml`
  [6a34a51b] + EmpiricalModeDecomposition v0.1.1
  Updating `/tmp/Manifest.toml`
  [621f4979] + AbstractFFTs v0.5.0
  [7d9fca2a] + Arpack v0.4.0
  [68821587] + Arpack_jll v3.5.0+2
  [b99e7846] + BinaryProvider v0.5.8
  [bbf7d656] + CommonSubexpressions v0.2.0
  [e66e0078] + CompilerSupportLibraries_jll v0.2.0+1
  [9a962f9c] + DataAPI v1.1.0
  [864edb3b] + DataStructures v0.17.10
  [39dd38d3] + Dierckx v0.4.1
  [163ba53b] + DiffResults v1.0.2
  [b552c78f] + DiffRules v1.0.1
  [31c24e10] + Distributions v0.22.5
  [ffbed154] + DocStringExtensions v0.8.1
  [e30172f5] + Documenter v0.23.4
  [6a34a51b] + EmpiricalModeDecomposition v0.1.1
  [7a1cc6ca] + FFTW v1.2.0
  [f5851436] + FFTW_jll v3.3.9+4
  [1a297f60] + FillArrays v0.8.5
  [f6369f11] + ForwardDiff v0.10.9
  [1d5cc7b8] + IntelOpenMP_jll v2018.0.3+0
  [682c06a0] + JSON v0.21.0
  [856f044c] + MKL_jll v2019.0.117+2
  [e1d29d7a] + Missings v0.4.3
  [77ba4419] + NaNMath v0.3.3
  [4536629a] + OpenBLAS_jll v0.3.7+6
  [efe28fd5] + OpenSpecFun_jll v0.5.3+2
  [bac558e1] + OrderedCollections v1.1.0
  [90014a1f] + PDMats v0.9.11
  [69de0a69] + Parsers v0.3.12
  [1fd47b50] + QuadGK v2.3.1
  [189a3867] + Reexport v0.2.0
  [79098fc4] + Rmath v0.6.1
  [f50d1b31] + Rmath_jll v0.2.2+0
  [a2af1166] + SortingAlgorithms v0.3.1
  [276daf66] + SpecialFunctions v0.10.0
  [90137ffa] + StaticArrays v0.12.1
  [2913bbd2] + StatsBase v0.32.2
  [4c63d2b9] + StatsFuns v0.9.4
  [2a0f44e3] + Base64 
  [ade2ca70] + Dates 
  [8ba89e20] + Distributed 
  [b77e0a4c] + InteractiveUtils 
  [76f85450] + LibGit2 
  [8f399da3] + Libdl 
  [37e2e46d] + LinearAlgebra 
  [56ddb016] + Logging 
  [d6f4376e] + Markdown 
  [a63ad114] + Mmap 
  [44cfe95a] + Pkg 
  [de0858da] + Printf 
  [3fa0cd96] + REPL 
  [9a3f8284] + Random 
  [ea8e919c] + SHA 
  [9e88b42a] + Serialization 
  [6462fe0b] + Sockets 
  [2f01184e] + SparseArrays 
  [10745b16] + Statistics 
  [4607b0f0] + SuiteSparse 
  [8dfed614] + Test 
  [cf7118a7] + UUIDs 
  [4ec0a83e] + Unicode 

julia> using EmpiricalModeDecomposition
[ Info: Precompiling EmpiricalModeDecomposition [6a34a51b-2f4a-4636-bd3c-e47519ebd0d9]

julia> EmpiricalModeDecomposition.
EEMDSetting           eemd                   evaluate_spline        hilbert_transform      sift!
EMDSetting            emd                    find_extrema!          include
compute_instantaneous eval                   hht                    linear_extrapolate
julia> EmpiricalModeDecomposition.

as you can see, ceemd does not seem to be a symbol existing in the module. I also note that there are no git tags associated with the releases of this package. Are you aware of the github action to automatically tag releases?

felixcremer commented 4 years ago

Thanks for the link, but there are no releases of this package yet. What you installed with the package manager is this package: https://github.com/atmnpatel/EmpiricalModeDecomposition.jl Whose existence I also just realised. I am going to ask whether they would like to join forces and develop the package together.

baggepinnen commented 4 years ago

Haha wow, that certainly does explain my problems. Sorry for the noise with this issue and hope that you can join forces moving forward. Thanks!