JuliaIO / MAT.jl

Julia module for reading MATLAB files
MIT License
278 stars 71 forks source link

Possible 0.7 / 1.0 issues #88

Closed lewisl closed 1 year ago

lewisl commented 6 years ago

Lots of warnings so it is a bit hard to parse these. Many are repeats but the chain seems to start with MAT.

WARNING: importing deprecated binding Base.Complex64 into MAT_HDF5.
WARNING: Base.Complex64 is deprecated, use ComplexF32 instead.
  likely near /Users/lewis/Dropbox/Online Coursework/ML Independent explorations/nn by hand/sample.jl:19
WARNING: importing deprecated binding Base.Complex128 into MAT_HDF5.
WARNING: Base.Complex128 is deprecated, use ComplexF64 instead.
        ... my stuff ....
WARNING: Base.Complex64 is deprecated, use ComplexF32 instead.
WARNING: Base.Complex128 is deprecated, use ComplexF64 instead.
WARNING: Base.SparseMatrixCSC is deprecated, run `using SparseArrays` to load sparse array functionality  (this occurs many times)
in read_sparse at /Users/lewis/.julia/packages/MAT/Pn0pR/src/MAT_v5.jl

And then, more:

Warning: `srand` is deprecated, use `Random.seed!` instead.
│   caller = #run_training#75(::Array{String,1}, ::String, ::Float64, ::Int64, ::Float64, ::String, ::Array{Float64,1}, ::Bool, ::Array{Float64,1}, ::String, ::String, ::Bool, ::String, ::Array{Float64,1}, ::Bool, ::typeof(Main.GeneralNN.run_training), ::String, ::Int64, ::Array{Int64,1}) at GeneralNN.jl:322
└ @ Main.GeneralNN ~/Dropbox/Online Coursework/ML Independent explorations/nn by hand/GeneralNN.jl:322
┌ Warning: `Array{T, 1}(m::Int) where T` is deprecated, use `Array{T, 1}(undef, m)` instead.
│   caller = matopen(::String, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at MAT.jl:56
└ @ MAT ~/.julia/packages/MAT/Pn0pR/src/MAT.jl:56
┌ Warning: `Array{T, 1}(m::Int) where T` is deprecated, use `Array{T, 1}(undef, m)` instead.
│   caller = matopen(::String, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at MAT.jl:79
└ @ MAT ~/.julia/packages/MAT/Pn0pR/src/MAT.jl:79
┌ Warning: `finalizer(o, f::Function)` is deprecated, use `finalizer(f, o)` instead.
│   caller = Type at MAT_HDF5.jl:48 [inlined]
└ @ Core ~/.julia/packages/MAT/Pn0pR/src/MAT_HDF5.jl:48

followed by lots of SparseMatrixCSC warnings:

WARNING: Base.SparseMatrixCSC is deprecated, run `using SparseArrays` to load sparse array functionality

I suspect this arises from this call to load .MAT files in my extract_data function:

function extract_data(matfname::String)
    # read the data
    df = matread(matfname)
                 .... more stuff
    return ...
end