JuliaStats / TimeSeries.jl

Time series toolkit for Julia
Other
353 stars 69 forks source link

Julia 0.7 #366

Closed femtotrader closed 5 years ago

femtotrader commented 6 years ago

Hello,

With Julia 0.7, the following code

julia> using TimeSeries

julia> dat = "Date,Open,High,Low,Close,Volume
       2012-01-03,11.0,11.25,10.99,11.13,45709900
       2012-01-04,11.15,11.53,11.07,11.3,79725200
       2012-01-05,11.33,11.63,11.24,11.59,67877500
       2012-01-06,11.74,11.8,11.52,11.71,59840700
       2012-01-09,11.83,11.95,11.7,11.8,53981500
       2012-01-10,12.0,12.05,11.63,11.8,121750600
       2012-01-11,11.74,12.18,11.65,12.07,63806000"
"Date,Open,High,Low,Close,Volume\n2012-01-03,11.0,11.25,10.99,11.13,45709900\n2012-01-04,11.15,11.53,11.07,11.3,79725200\n2012-01-05,11.33,11.63,11.24,11.59,67877500\n2012-01-06,11.74,11.8,11.52,11.71,59840700\n2012-01-09,11.83,11.95,11.7,11.8,53981500\n2012-01-10,12.0,12.05,11.63,11.8,121750600\n2012-01-11,11.74,12.18,11.65,12.07,63806000"

julia> io2 = IOBuffer(dat)
IOBuffer(data=UInt8[...], readable=true, writable=false, seekable=true, append=false, size=333, maxsize=Inf, ptr=1, mark=-1)

julia> ta2 = readtimearray(io2)
WARNING: importing deprecated binding Base.readdlm into TimeSeries.
WARNING: Base.readdlm is deprecated: it has been moved to the standard library package `DelimitedFiles`.
Add `using DelimitedFiles` to your imports.
 in module TimeSeries
WARNING: Base.readdlm is deprecated: it has been moved to the standard library package `DelimitedFiles`.
Add `using DelimitedFiles` to your imports.
 in module TimeSeries
WARNING: Base.readdlm is deprecated: it has been moved to the standard library package `DelimitedFiles`.
Add `using DelimitedFiles` to your imports.
 in module TimeSeries
WARNING: Base.readdlm is deprecated: it has been moved to the standard library package `DelimitedFiles`.
Add `using DelimitedFiles` to your imports.
 in module TimeSeries
WARNING: Base.readdlm is deprecated: it has been moved to the standard library package `DelimitedFiles`.
Add `using DelimitedFiles` to your imports.
 in module TimeSeries
WARNING: Base.readdlm is deprecated: it has been moved to the standard library package `DelimitedFiles`.
Add `using DelimitedFiles` to your imports.
 in module TimeSeries
┌ Warning: `find(f::Function, A::AbstractVector)` is deprecated, use `findall(f, A)` instead.
│   caller = #readtimearray#19(::Char, ::Nothing, ::String, ::Function, ::Base.GenericIOBuffer{Array{UInt8,1}}) at readwrite.jl:7
└ @ TimeSeries ~/.julia/packages/TimeSeries/HKhp/src/readwrite.jl:7
┌ Warning: `size(x, d1::Integer, d2::Integer)` is deprecated, use `(size(x, d1), size(x, d2))` instead.
│   caller = TimeArray{Float64,2,Date,Array{Float64,2}}(::Array{Date,1}, ::Array{Float64,2}, ::Array{String,1}, ::Nothing) at timearray.jl:20
└ @ TimeSeries ~/.julia/packages/TimeSeries/HKhp/src/timearray.jl:20
┌ Warning: `size(x, d1::Integer, d2::Integer)` is deprecated, use `(size(x, d1), size(x, d2))` instead.
│   caller = show(::IOContext{REPL.Terminals.TTYTerminal}, ::TimeArray{Float64,2,Date,Array{Float64,2}}) at timearray.jl:112
└ @ TimeSeries ~/.julia/packages/TimeSeries/HKhp/src/timearray.jl:112
7x5 TimeArray{Float64,2,Date,Array{Float64,2}} 2012-01-03 to 2012-01-11
┌ Warning: `round(x::Number, digits)` is deprecated, use `round(x; digits=digits)` instead.
│   caller = _showval at timearray.jl:78 [inlined]
└ @ Core ~/.julia/packages/TimeSeries/HKhp/src/timearray.jl:78
┌ Warning: `strwidth` is deprecated, use `textwidth` instead.
│   caller = _broadcast_getindex_evalf at broadcast.jl:579 [inlined]
└ @ Core ./broadcast.jl:579
┌ Warning: `strwidth` is deprecated, use `textwidth` instead.
│   caller = _broadcast_getindex_evalf at broadcast.jl:579 [inlined]
└ @ Core ./broadcast.jl:579
┌ Warning: `maximum(a::AbstractArray, dims)` is deprecated, use `maximum(a, dims=dims)` instead.
│   caller = show(::IOContext{REPL.Terminals.TTYTerminal}, ::TimeArray{Float64,2,Date,Array{Float64,2}}) at timearray.jl:133
└ @ TimeSeries ~/.julia/packages/TimeSeries/HKhp/src/timearray.jl:133
┌ Warning: `strwidth` is deprecated, use `textwidth` instead.
│   caller = show(::IOContext{REPL.Terminals.TTYTerminal}, ::TimeArray{Float64,2,Date,Array{Float64,2}}) at timearray.jl:134
└ @ TimeSeries ~/.julia/packages/TimeSeries/HKhp/src/timearray.jl:134
│            │ Open  │ High  │ Low   │ Close │ Volume     │
├────────────┼───────┼───────┼───────┼───────┼────────────┤
│ 2012-01-03 │ 11.0  │ 11.25 │ 10.99 │ 11.13 │ 4.57099e7  │
│ 2012-01-04 │ 11.15 │ 11.53 │ 11.07 │ 11.3  │ 7.97252e7  │
│ 2012-01-05 │ 11.33 │ 11.63 │ 11.24 │ 11.59 │ 6.78775e7  │
│ 2012-01-06 │ 11.74 │ 11.8  │ 11.52 │ 11.71 │ 5.98407e7  │
│ 2012-01-09 │ 11.83 │ 11.95 │ 11.7  │ 11.8  │ 5.39815e7  │
│ 2012-01-10 │ 12.0  │ 12.05 │ 11.63 │ 11.8  │ 1.217506e8 │
│ 2012-01-11 │ 11.74 │ 12.18 │ 11.65 │ 12.07 │ 6.3806e7   │

display depwarns.

Kind regards

iblislin commented 6 years ago

I want to make a new release for 0.6 before upgrading to 0.7

jd-lara commented 6 years ago

@iblis17 any ETA for 0.7 support?

iblislin commented 6 years ago

well, one week I hope.

iblislin commented 5 years ago

v0.7/1.0 are supported already.

femtotrader commented 5 years ago

I wonder why https://github.com/JuliaLang/METADATA.jl/pull/19071 haven't been merged