Question about my Pkg


This is the modified program

After downloading Pkg again, there is no change

using LPVSpectral, Plots
a=convert(Vector{Float64},rand(20))
λ      = 0.02 # Regularization parameter
λs     = 1    # Regularization parameter group-lasso
normal = true # Use normalized basis functions
Nv     = 50   # Number of basis functions
 x = sort(10rand(20))
 v = range(0, stop=1, length=20) 
se  = ls_spectral_lpv(a,X,V,w_test,Nv; λ = λ, normalize = normal)

ERROR: LoadError: UndefVarError: warn not defined
Stacktrace:
[1] ls_spectral_lpv(::Array{Float64,1}, ::Array{Float64,1}, ::StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}}, ::StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}}, ::Int64; λ::Float64, coulomb::Bool, normalize::Bool) at C:\Users\27990.juliapro\JuliaPro_v1.4.2-1\packages\LPVSpectral\7XqRc\src\lsfft.jl:256
[2] top-level scope at untitled-9f246b91b79fbac6d315ccc2dda483e2:57
in expression starting at untitled-9f246b91b79fbac6d315ccc2dda483e2:57
It’s still reporting an error.
Why?thanks!

first you should make it easier to help you.
Its hard to get what the actual issue is:

How do you “download” the package:

  • ]pkg up ?
  • cd $PATH_TO_REPO ;git pull and then doing a ]dev "PATH_TO_REPO" in julia?
3 Likes