QuantEcon / CompEcon.jl

Julia versions of the CompEcon routines by Miranda and Fackler.
BSD 3-Clause "New" or "Revised" License
47 stars 27 forks source link

v0.7/v1.0 #35

Closed IljaK91 closed 6 years ago

IljaK91 commented 6 years ago

It looks like tests pass on v0.7, but there are some deprecation warnings, I print them below. Is there someone working on this at the moment? If not, I could have a try, but some guidance would be welcome.


┌ Warning: Deprecated syntax `parametric method syntax get_bformat{T <: BasisMatrix{Direct}}(b::T)` around C:\Users\Ilja\.julia\dev\CompEcon\src\core.jl:12.
│ Use `get_bformat(b::T) where T <: BasisMatrix{Direct}` instead.
└ @ C:\Users\Ilja\.julia\dev\CompEcon\src\core.jl:12
┌ Warning: Deprecated syntax `parametric method syntax get_bformat{T <: BasisMatrix{Expanded}}(b::T)` around C:\Users\Ilja\.julia\dev\CompEcon\src\core.jl:13.
│ Use `get_bformat(b::T) where T <: BasisMatrix{Expanded}` instead.
└ @ C:\Users\Ilja\.julia\dev\CompEcon\src\core.jl:13
┌ Warning: Deprecated syntax `parametric method syntax get_bformat{T <: BasisMatrix{Tensor}}(b::T)` around C:\Users\Ilja\.julia\dev\CompEcon\src\core.jl:14.
│ Use `get_bformat(b::T) where T <: BasisMatrix{Tensor}` instead.
└ @ C:\Users\Ilja\.julia\dev\CompEcon\src\core.jl:14
WARNING: Base.Test is deprecated, run `using Test` instead
  likely near C:\Users\Ilja\.julia\dev\CompEcon\test\runtests.jl:5
┌ Warning: `linspace(start, stop, length::Integer)` is deprecated, use `range(start, stop=stop,
length=length)` instead.
│   caller = top-level scope at none:0
└ @ Core none:0
┌ Warning: `linspace(start, stop, length::Integer)` is deprecated, use `range(start, stop=stop,
length=length)` instead.
│   caller = top-level scope at none:0
└ @ Core none:0
Test Summary:            | Pass  Total
Test original API compat |   10     10
┌ Warning: `linspace(start, stop, length::Integer)` is deprecated, use `range(start, stop=stop,
length=length)` instead.
│   caller = top-level scope at none:0
└ @ Core none:0
┌ Warning: `Array{T}(m::Int) where T` is deprecated, use `Array{T}(undef, m)` instead.
│   caller = fundef(::Tuple{Symbol,StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}},Int64,Int64}) at core.jl:76
└ @ CompEcon C:\Users\Ilja\.julia\dev\CompEcon\src\core.jl:76
┌ Warning: `Array{T}(m::Int) where T` is deprecated, use `Array{T}(undef, m)` instead.
│   caller = fundef(::Tuple{Symbol,StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}},Int64,Int64}) at core.jl:77
└ @ CompEcon C:\Users\Ilja\.julia\dev\CompEcon\src\core.jl:77
┌ Warning: `Array{T}(m::Int) where T` is deprecated, use `Array{T}(undef, m)` instead.
│   caller = fundef(::Tuple{Symbol,StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}},Int64,Int64}) at core.jl:79
└ @ CompEcon C:\Users\Ilja\.julia\dev\CompEcon\src\core.jl:79
┌ Warning: `linspace(start, stop, length::Integer)` is deprecated, use `range(start, stop=stop,
length=length)` instead.
│   caller = top-level scope at none:0
└ @ Core none:0
┌ Warning: `Array{T}(m::Int) where T` is deprecated, use `Array{T}(undef, m)` instead.
│   caller = fundef(::Tuple{Symbol,StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}},Int64}) at core.jl:76
└ @ CompEcon C:\Users\Ilja\.julia\dev\CompEcon\src\core.jl:76
┌ Warning: `Array{T}(m::Int) where T` is deprecated, use `Array{T}(undef, m)` instead.
│   caller = fundef(::Tuple{Symbol,StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}},Int64}) at core.jl:77
└ @ CompEcon C:\Users\Ilja\.julia\dev\CompEcon\src\core.jl:77
┌ Warning: `Array{T}(m::Int) where T` is deprecated, use `Array{T}(undef, m)` instead.
│   caller = fundef(::Tuple{Symbol,StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}},Int64}) at core.jl:79
└ @ CompEcon C:\Users\Ilja\.julia\dev\CompEcon\src\core.jl:79
┌ Warning: `Array{T}(m::Int) where T` is deprecated, use `Array{T}(undef, m)` instead.
│   caller = fundef(::Tuple{Symbol,Int64,Float64,Float64}) at core.jl:76
└ @ CompEcon C:\Users\Ilja\.julia\dev\CompEcon\src\core.jl:76
┌ Warning: `Array{T}(m::Int) where T` is deprecated, use `Array{T}(undef, m)` instead.
│   caller = fundef(::Tuple{Symbol,Int64,Float64,Float64}) at core.jl:77
└ @ CompEcon C:\Users\Ilja\.julia\dev\CompEcon\src\core.jl:77
┌ Warning: `Array{T}(m::Int) where T` is deprecated, use `Array{T}(undef, m)` instead.
│   caller = fundef(::Tuple{Symbol,Int64,Float64,Float64}) at core.jl:79
└ @ CompEcon C:\Users\Ilja\.julia\dev\CompEcon\src\core.jl:79
┌ Warning: `Array{T}(m::Int, n::Int) where T` is deprecated, use `Array{T}(undef, m, n)` instead.
│   caller = fundefn(::Symbol, ::Array{Int64,1}, ::Array{Float64,1}, ::Array{Float64,1}, ::Int64) at core.jl:107
└ @ CompEcon C:\Users\Ilja\.julia\dev\CompEcon\src\core.jl:107
┌ Warning: `Array{T}(m::Int) where T` is deprecated, use `Array{T}(undef, m)` instead.
│   caller = fundef(::Array{Any,1}, ::Vararg{Array{Any,1},N} where N) at core.jl:76
└ @ CompEcon C:\Users\Ilja\.julia\dev\CompEcon\src\core.jl:76
┌ Warning: `Array{T}(m::Int) where T` is deprecated, use `Array{T}(undef, m)` instead.
│   caller = fundef(::Array{Any,1}, ::Vararg{Array{Any,1},N} where N) at core.jl:77
└ @ CompEcon C:\Users\Ilja\.julia\dev\CompEcon\src\core.jl:77
┌ Warning: `Array{T}(m::Int) where T` is deprecated, use `Array{T}(undef, m)` instead.
│   caller = fundef(::Array{Any,1}, ::Vararg{Array{Any,1},N} where N) at core.jl:79
└ @ CompEcon C:\Users\Ilja\.julia\dev\CompEcon\src\core.jl:79
┌ Warning: Deprecated syntax `implicit assignment to global variable `i``.
│ Use `global i` instead.
└ @ none:0
´´´
sglyon commented 6 years ago

Thanks for reporting!

I just finished fixing up basismatrices for 0.7 and haven't made it here yet.

If you are willing to take a look that would be great. The approach is basically to play whack-a-mole with deprecations and warnings.

IljaK91 commented 6 years ago

Alright, I'll have a try tomorrow.

IljaK91 commented 6 years ago

I have opened a pull request with the fixes.